From 736637363b910560b4937a40bdde773cd5843f93 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Mon, 20 Feb 2017 15:07:01 -0800 Subject: Integration tests play nice with new disabled buttons. --- test/integration/lib/first-time.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') 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 { -- cgit v1.2.3