Fix test to skip screens before privacy notice

feature/default_network_editable
Dan Finlay 7 years ago
parent ab35a76a24
commit 45c5a26405
  1. 8
      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()

Loading…
Cancel
Save