diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-02-11 05:14:09 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-02-11 05:14:09 +0800 |
commit | 603eee9efe43822b81a7d11b3ec8faa9b2227952 (patch) | |
tree | b0b4d796d63e5c9375cdce93172257a434239aae /test/integration | |
parent | 65f50ec7eeb40237084d99c737a2b768edbc578a (diff) | |
parent | 5c9202b2d2a47242f7845bdb6774135d49d3eb6f (diff) | |
download | tangerine-wallet-browser-603eee9efe43822b81a7d11b3ec8faa9b2227952.tar tangerine-wallet-browser-603eee9efe43822b81a7d11b3ec8faa9b2227952.tar.gz tangerine-wallet-browser-603eee9efe43822b81a7d11b3ec8faa9b2227952.tar.bz2 tangerine-wallet-browser-603eee9efe43822b81a7d11b3ec8faa9b2227952.tar.lz tangerine-wallet-browser-603eee9efe43822b81a7d11b3ec8faa9b2227952.tar.xz tangerine-wallet-browser-603eee9efe43822b81a7d11b3ec8faa9b2227952.tar.zst tangerine-wallet-browser-603eee9efe43822b81a7d11b3ec8faa9b2227952.zip |
Merge branch 'mapachurro-patch-1' of github.com:mapachurro/metamask-plugin into mapachurro-patch-1
Diffstat (limited to 'test/integration')
-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 581eec6c7..55a16ef38 100644 --- a/test/integration/lib/first-time.js +++ b/test/integration/lib/first-time.js @@ -70,6 +70,34 @@ QUnit.test('render init screen', 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() }) }) |