From bf9d1f405fa3a2c5859291340b6f3ecdce47cac4 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Mon, 20 Feb 2017 13:41:46 -0800 Subject: add waits between notices. --- test/integration/lib/first-time.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/integration/lib/first-time.js') 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') -- cgit v1.2.3