diff options
author | mapachurro <oliver.renwick@gmail.com> | 2017-02-10 09:54:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-10 09:54:29 +0800 |
commit | 5c9202b2d2a47242f7845bdb6774135d49d3eb6f (patch) | |
tree | e2b25ea48b7a8603c6b7c3fccac9e692d65d233a /test | |
parent | 2f6bf1c074fc49fd0354380c24e07eb9aa2a5ec2 (diff) | |
download | tangerine-wallet-browser-5c9202b2d2a47242f7845bdb6774135d49d3eb6f.tar tangerine-wallet-browser-5c9202b2d2a47242f7845bdb6774135d49d3eb6f.tar.gz tangerine-wallet-browser-5c9202b2d2a47242f7845bdb6774135d49d3eb6f.tar.bz2 tangerine-wallet-browser-5c9202b2d2a47242f7845bdb6774135d49d3eb6f.tar.lz tangerine-wallet-browser-5c9202b2d2a47242f7845bdb6774135d49d3eb6f.tar.xz tangerine-wallet-browser-5c9202b2d2a47242f7845bdb6774135d49d3eb6f.tar.zst tangerine-wallet-browser-5c9202b2d2a47242f7845bdb6774135d49d3eb6f.zip |
Update first-time.js
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/lib/first-time.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js index 6e75eb6d7..3b5985401 100644 --- a/test/integration/lib/first-time.js +++ b/test/integration/lib/first-time.js @@ -86,6 +86,34 @@ QUnit.test('agree to terms', function (assert) { var detail = app.find('.account-detail-section')[0] 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() }) }) |