From e35cd77eee3212063703f42b37f51be80cdbdab1 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 29 Nov 2017 11:49:53 -0800 Subject: [PATCH] Accept all notices in integration tests --- test/integration/lib/mascara-first-time.js | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/test/integration/lib/mascara-first-time.js b/test/integration/lib/mascara-first-time.js index 9141b68d2..42ef83f4f 100644 --- a/test/integration/lib/mascara-first-time.js +++ b/test/integration/lib/mascara-first-time.js @@ -57,29 +57,14 @@ async function runFirstTimeUsageTest (assert, done) { await timeout(1000) - // Skip things before Privacy: + // Skip notices: let detail = app.find('.tou__title')[0] - while (detail !== 'Privacy Notice') { + let button = app.find('button') + if (button.html() === 'Accept') { app.find('button').click() await timeout(1000) } - // Privacy Screen - assert.equal(detail.textContent, 'Privacy Notice', 'privacy notice screen') - app.find('button').click() - - await timeout(1000) - - - // terms of service screen - const tou = app.find('.tou__title')[0] - assert.equal(tou.textContent, 'Terms of Use', 'terms of use screen') - app.find('.tou__body').scrollTop(100000) - await timeout(1000) - - app.find('.first-time-flow__button').click() - await timeout(1000) - // secret backup phrase const seedTitle = app.find('.backup-phrase__title')[0] assert.equal(seedTitle.textContent, 'Secret Backup Phrase', 'seed phrase screen')