1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00

Fix test to skip screens before privacy notice

This commit is contained in:
Dan Finlay 2017-11-28 17:25:09 -08:00
parent ab35a76a24
commit 45c5a26405

View File

@ -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()