mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Make notice skipping async
This commit is contained in:
parent
9276fea6bc
commit
42108ba3bc
@ -6,7 +6,7 @@ async function runFirstTimeUsageTest (assert, done) {
|
|||||||
|
|
||||||
const app = $('#app-content')
|
const app = $('#app-content')
|
||||||
|
|
||||||
skipNotices()
|
await skipNotices()
|
||||||
|
|
||||||
await timeout()
|
await timeout()
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ async function runFirstTimeUsageTest (assert, done) {
|
|||||||
|
|
||||||
await timeout(1000)
|
await timeout(1000)
|
||||||
|
|
||||||
skipNotices()
|
await skipNotices()
|
||||||
|
|
||||||
// secret backup phrase
|
// secret backup phrase
|
||||||
const seedTitle = app.find('.backup-phrase__title')[0]
|
const seedTitle = app.find('.backup-phrase__title')[0]
|
||||||
@ -135,7 +135,7 @@ function timeout (time) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function skipNotices () {
|
async function skipNotices () {
|
||||||
while (true) {
|
while (true) {
|
||||||
const button = app.find('button')
|
const button = app.find('button')
|
||||||
if (button && button.html() === 'Accept') {
|
if (button && button.html() === 'Accept') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user