|
|
@ -86,6 +86,34 @@ QUnit.test('agree to terms', function (assert) { |
|
|
|
var detail = app.find('.account-detail-section')[0] |
|
|
|
var detail = app.find('.account-detail-section')[0] |
|
|
|
assert.ok(detail, 'Account detail section loaded again.') |
|
|
|
assert.ok(detail, 'Account detail section loaded again.') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return wait() |
|
|
|
|
|
|
|
}).then(function (){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var qrButton = app.find('.fa.fa-qrcode')[0] |
|
|
|
|
|
|
|
qrButton.click() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return wait(1000) |
|
|
|
|
|
|
|
}).then(function (){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var qrHeader = app.find('.qr-header')[0] |
|
|
|
|
|
|
|
var qrContainer = app.find('#qr-container')[0] |
|
|
|
|
|
|
|
assert.equal(qrHeader.textContent, 'Account 1', 'Should show account label.') |
|
|
|
|
|
|
|
assert.ok(qrContainer, 'QR Container found') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return wait() |
|
|
|
|
|
|
|
}).then(function (){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var networkMenu = app.find('.network-indicator')[0] |
|
|
|
|
|
|
|
networkMenu.click() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return wait() |
|
|
|
|
|
|
|
}).then(function (){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var networkMenu = app.find('.network-indicator')[0] |
|
|
|
|
|
|
|
var children = networkMenu.children |
|
|
|
|
|
|
|
children.length[3] |
|
|
|
|
|
|
|
assert.ok(children, 'All network options present') |
|
|
|
|
|
|
|
|
|
|
|
done() |
|
|
|
done() |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|