aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-06-12 06:34:54 +0800
committerkumavis <aaron@kumavis.me>2018-06-12 06:34:54 +0800
commitab0e60e802b500460d919825971deb7c5ef4bc1b (patch)
treed51114ed7961738920c06343535f0e6e62ea0062
parent2e3f421b7343911b84138b5de5a68aad00b01d48 (diff)
downloadtangerine-wallet-browser-ab0e60e802b500460d919825971deb7c5ef4bc1b.tar.gz
tangerine-wallet-browser-ab0e60e802b500460d919825971deb7c5ef4bc1b.tar.zst
tangerine-wallet-browser-ab0e60e802b500460d919825971deb7c5ef4bc1b.zip
test - e2e - fix incomplete setup phase
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js5
-rw-r--r--test/e2e/metamask.spec.js2
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])
})