From 45c5a26405e20a64fab16fa212fd4e5b21e49e68 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 28 Nov 2017 17:25:09 -0800 Subject: Fix test to skip screens before privacy notice --- test/integration/lib/mascara-first-time.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/integration/lib/mascara-first-time.js b/test/integration/lib/mascara-first-time.js index 3398a5511..9141b68d2 100644 --- a/test/integration/lib/mascara-first-time.js +++ b/test/integration/lib/mascara-first-time.js @@ -57,8 +57,14 @@ async function runFirstTimeUsageTest (assert, done) { await timeout(1000) + // Skip things before Privacy: + let detail = app.find('.tou__title')[0] + while (detail !== 'Privacy Notice') { + app.find('button').click() + await timeout(1000) + } + // Privacy Screen - const detail = app.find('.tou__title')[0] assert.equal(detail.textContent, 'Privacy Notice', 'privacy notice screen') app.find('button').click() -- cgit v1.2.3