e2e:improve stability#8
This commit is contained in:
parent
ac8aa781b7
commit
e6e76babee
|
@ -1809,8 +1809,7 @@ describe('Metamask popup page', async function () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function waitUntilCurrentUrl()
|
async function waitUntilCurrentUrl () {
|
||||||
{
|
|
||||||
try {
|
try {
|
||||||
let title
|
let title
|
||||||
let counter = 20
|
let counter = 20
|
||||||
|
@ -1820,9 +1819,7 @@ describe('Metamask popup page', async function () {
|
||||||
} while ((title === '') && (counter-- > 0))
|
} while ((title === '') && (counter-- > 0))
|
||||||
if (counter < 1) return false
|
if (counter < 1) return false
|
||||||
return title
|
return title
|
||||||
}
|
} catch (err) {
|
||||||
catch(err)
|
|
||||||
{
|
|
||||||
console.log(err)
|
console.log(err)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue