test - e2e - fix incomplete setup phase

feature/default_network_editable
kumavis 7 years ago
parent 2e3f421b73
commit ab0e60e802
  1. 5
      test/e2e/beta/metamask-beta-ui.spec.js
  2. 2
      test/e2e/metamask.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 })
}
})

@ -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])
})

Loading…
Cancel
Save