From 6817de30b8e890dad8bb306fa99b2acb13c499cc Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Mon, 20 Jan 2020 18:40:01 -0400 Subject: [PATCH] Add 1 second pause at the beginning of each e2e test run (#7872) There have been intermittent test failures at the beginning of various e2e test runs. Most tests start with waiting for the 'Welcome' button to be visible and enabled, which means waiting for the loading screen to go away. It looks like the reason the test intermittently fails is that sometimes the loading screen doesn't appear until a few moments _after_ the page loads (or that it vanishes and comes back). It was rather difficult to track down each possible cause for the loading screens, so in the meantime a pause has been added at the start of each run. This should hopefully suffice to ensure the momentary gap in loading has been passed by the time the first test starts up. --- test/e2e/webdriver/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/webdriver/index.js b/test/e2e/webdriver/index.js index 1e5bea5e5434..94526f0edb3f 100644 --- a/test/e2e/webdriver/index.js +++ b/test/e2e/webdriver/index.js @@ -17,6 +17,8 @@ async function buildWebDriver ({ responsive, port } = {}) { const driver = new Driver(seleniumDriver, browser, extensionUrl) await driver.navigate() + await driver.delay(1000) + return { driver, extensionId,