Skip to content

Commit

Permalink
test:e2e - add extra delay before closing popups
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Sep 10, 2019
1 parent 95b1cfd commit 581763d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ async function prepareExtensionForTesting () {
// 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
// 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()
await closeAllWindowHandlesExcept(driver, [tab1])
await driver.switchTo().window(tab1)
Expand Down

0 comments on commit 581763d

Please sign in to comment.