diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-02-21 08:00:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-21 08:00:13 +0800 |
commit | 838d19e17fb26daadd7f171cc6f0494ce29fe43d (patch) | |
tree | 122305492496b1f5cc84b62b2f49d7bf234ded3e /test | |
parent | 6af200b3f38e78e956a48e670901d011ab8e8269 (diff) | |
parent | 9e81a0c8c4fb8311070dbf632e857a0a4156c4b8 (diff) | |
download | tangerine-wallet-browser-838d19e17fb26daadd7f171cc6f0494ce29fe43d.tar tangerine-wallet-browser-838d19e17fb26daadd7f171cc6f0494ce29fe43d.tar.gz tangerine-wallet-browser-838d19e17fb26daadd7f171cc6f0494ce29fe43d.tar.bz2 tangerine-wallet-browser-838d19e17fb26daadd7f171cc6f0494ce29fe43d.tar.lz tangerine-wallet-browser-838d19e17fb26daadd7f171cc6f0494ce29fe43d.tar.xz tangerine-wallet-browser-838d19e17fb26daadd7f171cc6f0494ce29fe43d.tar.zst tangerine-wallet-browser-838d19e17fb26daadd7f171cc6f0494ce29fe43d.zip |
Merge pull request #1140 from MetaMask/i1128-noticesdev
Add notice functionality
Diffstat (limited to 'test')
-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') |