test - e2e-beta - update some api calls

feature/default_network_editable
kumavis 7 years ago
parent 3111ae3a69
commit 0ada37ead7
  1. 10
      test/e2e/beta/metamask-beta-ui.spec.js

@ -12,8 +12,6 @@ const {
findElement,
findElements,
checkBrowserForConsoleErrors,
loadExtension,
verboseReportOnFailure,
openNewPage,
} = require('./helpers')
@ -53,7 +51,7 @@ describe('MetaMask', function () {
}
}
if (this.currentTest.state === 'failed') {
await verboseReportOnFailure(driver, this.currentTest)
await verboseReportOnFailure({ browser, driver, title: this.currentTest.title })
}
})
@ -70,7 +68,7 @@ describe('MetaMask', function () {
try {
networkSelector = await findElement(driver, By.css('#network_component'))
} catch (e) {
await loadExtension(driver, extensionId)
await driver.get(extensionUri)
}
await delay(regularDelayMs)
})
@ -240,7 +238,7 @@ describe('MetaMask', function () {
await word11.click()
await delay(tinyDelayMs)
} catch (e) {
await loadExtension(driver, extensionId)
await driver.get(extensionUri)
await retypeSeedPhrase(words)
}
}
@ -597,7 +595,7 @@ describe('MetaMask', function () {
await driver.close()
await driver.switchTo().window(extension)
await loadExtension(driver, extensionId)
await driver.get(extensionUri)
await driver.switchTo().window(extension)
await delay(regularDelayMs)

Loading…
Cancel
Save