From 581763d510f51ad708143d9c7e8f38e6e8f0ca45 Mon Sep 17 00:00:00 2001 From: kumavis Date: Tue, 10 Sep 2019 19:53:21 +0800 Subject: [PATCH] test:e2e - add extra delay before closing popups --- test/e2e/helpers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e/helpers.js b/test/e2e/helpers.js index 4875f9d72..a65512383 100644 --- a/test/e2e/helpers.js +++ b/test/e2e/helpers.js @@ -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)