aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-02-21 07:07:01 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-02-21 07:07:01 +0800
commit736637363b910560b4937a40bdde773cd5843f93 (patch)
treed3c3cd1e011e667461d5e9f3ad1f3f966501a1c2 /test
parente54b73679ce3db60b763b92cc70c2abf6c83f6db (diff)
downloadtangerine-wallet-browser-736637363b910560b4937a40bdde773cd5843f93.tar
tangerine-wallet-browser-736637363b910560b4937a40bdde773cd5843f93.tar.gz
tangerine-wallet-browser-736637363b910560b4937a40bdde773cd5843f93.tar.bz2
tangerine-wallet-browser-736637363b910560b4937a40bdde773cd5843f93.tar.lz
tangerine-wallet-browser-736637363b910560b4937a40bdde773cd5843f93.tar.xz
tangerine-wallet-browser-736637363b910560b4937a40bdde773cd5843f93.tar.zst
tangerine-wallet-browser-736637363b910560b4937a40bdde773cd5843f93.zip
Integration tests play nice with new disabled buttons.
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/first-time.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js
index 79fbb8f58..dbb88a3da 100644
--- a/test/integration/lib/first-time.js
+++ b/test/integration/lib/first-time.js
@@ -10,10 +10,14 @@ QUnit.test('render init screen', function (assert) {
app = $('iframe').contents().find('#app-content .mock-app-root')
const recurseNotices = function () {
- var button = app.find('button')
+ let button = app.find('button')
if (button.html() === 'Continue') {
- button.click()
+ let termsPage = app.find('.markdown')[0]
+ termsPage.scrollTop = termsPage.scrollHeight
return wait().then(() => {
+ button.click()
+ return wait()
+ }).then(() => {
return recurseNotices()
})
} else {