mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
test:e2e - add extra delay before closing popups
This commit is contained in:
parent
d43a78432f
commit
56dae017a9
@ -67,6 +67,10 @@ async function prepareExtensionForTesting () {
|
|||||||
// Depending on the state of the application built into the above directory (extPath) and the value of
|
// Depending on the state of the application built into the above directory (extPath) and the value of
|
||||||
// METAMASK_DEBUG we will see different post-install behaviour and possibly some extra windows. Here we
|
// METAMASK_DEBUG we will see different post-install behaviour and possibly some extra windows. Here we
|
||||||
// are closing any extraneous windows to reset us to a single window before continuing.
|
// are closing any extraneous windows to reset us to a single window before continuing.
|
||||||
|
|
||||||
|
// wait an extra long time so any slow popups can trigger
|
||||||
|
await delay(4 * largeDelayMs)
|
||||||
|
|
||||||
const [tab1] = await driver.getAllWindowHandles()
|
const [tab1] = await driver.getAllWindowHandles()
|
||||||
await closeAllWindowHandlesExcept(driver, [tab1])
|
await closeAllWindowHandlesExcept(driver, [tab1])
|
||||||
await driver.switchTo().window(tab1)
|
await driver.switchTo().window(tab1)
|
||||||
|
Loading…
Reference in New Issue
Block a user