mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Accept all notices in integration tests
This commit is contained in:
parent
45c5a26405
commit
e35cd77eee
@ -57,29 +57,14 @@ async function runFirstTimeUsageTest (assert, done) {
|
|||||||
|
|
||||||
await timeout(1000)
|
await timeout(1000)
|
||||||
|
|
||||||
// Skip things before Privacy:
|
// Skip notices:
|
||||||
let detail = app.find('.tou__title')[0]
|
let detail = app.find('.tou__title')[0]
|
||||||
while (detail !== 'Privacy Notice') {
|
let button = app.find('button')
|
||||||
|
if (button.html() === 'Accept') {
|
||||||
app.find('button').click()
|
app.find('button').click()
|
||||||
await timeout(1000)
|
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
|
// secret backup phrase
|
||||||
const seedTitle = app.find('.backup-phrase__title')[0]
|
const seedTitle = app.find('.backup-phrase__title')[0]
|
||||||
assert.equal(seedTitle.textContent, 'Secret Backup Phrase', 'seed phrase screen')
|
assert.equal(seedTitle.textContent, 'Secret Backup Phrase', 'seed phrase screen')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user