diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-02-21 05:41:46 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-02-21 05:41:46 +0800 |
commit | bf9d1f405fa3a2c5859291340b6f3ecdce47cac4 (patch) | |
tree | 5a83f6a9505c49f7f127d97dcb4762022be39535 /test | |
parent | 415b9b245c4fa0b83892e676cd29306733235e7e (diff) | |
download | tangerine-wallet-browser-bf9d1f405fa3a2c5859291340b6f3ecdce47cac4.tar tangerine-wallet-browser-bf9d1f405fa3a2c5859291340b6f3ecdce47cac4.tar.gz tangerine-wallet-browser-bf9d1f405fa3a2c5859291340b6f3ecdce47cac4.tar.bz2 tangerine-wallet-browser-bf9d1f405fa3a2c5859291340b6f3ecdce47cac4.tar.lz tangerine-wallet-browser-bf9d1f405fa3a2c5859291340b6f3ecdce47cac4.tar.xz tangerine-wallet-browser-bf9d1f405fa3a2c5859291340b6f3ecdce47cac4.tar.zst tangerine-wallet-browser-bf9d1f405fa3a2c5859291340b6f3ecdce47cac4.zip |
add waits between notices.
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/lib/first-time.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js index 55a16ef38..79fbb8f58 100644 --- a/test/integration/lib/first-time.js +++ b/test/integration/lib/first-time.js @@ -9,6 +9,19 @@ QUnit.test('render init screen', function (assert) { wait().then(function() { app = $('iframe').contents().find('#app-content .mock-app-root') + const recurseNotices = function () { + var button = app.find('button') + if (button.html() === 'Continue') { + button.click() + return wait().then(() => { + return recurseNotices() + }) + } else { + return wait() + } + } + return recurseNotices() + }).then(function() { // Scroll through terms var title = app.find('h1').text() assert.equal(title, 'MetaMask', 'title screen') |