From ab0e60e802b500460d919825971deb7c5ef4bc1b Mon Sep 17 00:00:00 2001 From: kumavis Date: Mon, 11 Jun 2018 15:34:54 -0700 Subject: [PATCH] test - e2e - fix incomplete setup phase --- test/e2e/beta/metamask-beta-ui.spec.js | 5 ++++- test/e2e/metamask.spec.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index 14ea5b0a5..3cc9f6a2a 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -36,6 +36,9 @@ describe('MetaMask', function () { const installResult = await setupBrowserAndExtension({ browser, extPath }) driver = installResult.driver extensionUri = installResult.extensionUri + + await driver.get(extensionUri) + await delay(tinyDelayMs) }) afterEach(async function () { @@ -48,7 +51,7 @@ describe('MetaMask', function () { } } if (this.currentTest.state === 'failed') { - await verboseReportOnFailure({ browser, driver, title: this.currentTest.tile }) + await verboseReportOnFailure({ browser, driver, title: this.currentTest.title }) } }) diff --git a/test/e2e/metamask.spec.js b/test/e2e/metamask.spec.js index 5153c0ee5..6243bf8d6 100644 --- a/test/e2e/metamask.spec.js +++ b/test/e2e/metamask.spec.js @@ -20,6 +20,7 @@ describe('Metamask popup page', function () { extensionUri = installResult.extensionUri await driver.get(extensionUri) + await delay(300) }) afterEach(async function () { @@ -47,7 +48,6 @@ describe('Metamask popup page', function () { describe('Setup', function () { it('switches to Chrome extensions list', async function () { - await delay(300) const windowHandles = await driver.getAllWindowHandles() await driver.switchTo().window(windowHandles[0]) })