diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-02-24 06:17:52 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-02-24 06:17:52 +0800 |
commit | 30e4bdf24b30c9a59a86d7b7890af66ffd0e83c5 (patch) | |
tree | 831a0441622eb017e64dc9a8c513c82b2a8f7c08 /test/integration/lib/first-time.js | |
parent | 6b56d6ba9853ec978cd2d3d030882fa5ee3645cd (diff) | |
parent | 09c7b9d242f66db99c80f22fae00dfdb894e2adc (diff) | |
download | tangerine-wallet-browser-30e4bdf24b30c9a59a86d7b7890af66ffd0e83c5.tar tangerine-wallet-browser-30e4bdf24b30c9a59a86d7b7890af66ffd0e83c5.tar.gz tangerine-wallet-browser-30e4bdf24b30c9a59a86d7b7890af66ffd0e83c5.tar.bz2 tangerine-wallet-browser-30e4bdf24b30c9a59a86d7b7890af66ffd0e83c5.tar.lz tangerine-wallet-browser-30e4bdf24b30c9a59a86d7b7890af66ffd0e83c5.tar.xz tangerine-wallet-browser-30e4bdf24b30c9a59a86d7b7890af66ffd0e83c5.tar.zst tangerine-wallet-browser-30e4bdf24b30c9a59a86d7b7890af66ffd0e83c5.zip |
Merge github.com:MetaMask/metamask-plugin into i765-gaslimits
Diffstat (limited to 'test/integration/lib/first-time.js')
-rw-r--r-- | test/integration/lib/first-time.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js index 55a16ef38..dbb88a3da 100644 --- a/test/integration/lib/first-time.js +++ b/test/integration/lib/first-time.js @@ -9,6 +9,23 @@ QUnit.test('render init screen', function (assert) { wait().then(function() { app = $('iframe').contents().find('#app-content .mock-app-root') + const recurseNotices = function () { + let button = app.find('button') + if (button.html() === 'Continue') { + let termsPage = app.find('.markdown')[0] + termsPage.scrollTop = termsPage.scrollHeight + return wait().then(() => { + 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') |