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, findElement,
findElements, findElements,
checkBrowserForConsoleErrors, checkBrowserForConsoleErrors,
loadExtension,
verboseReportOnFailure,
openNewPage, openNewPage,
} = require('./helpers') } = require('./helpers')
@ -53,7 +51,7 @@ describe('MetaMask', function () {
} }
} }
if (this.currentTest.state === 'failed') { 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 { try {
networkSelector = await findElement(driver, By.css('#network_component')) networkSelector = await findElement(driver, By.css('#network_component'))
} catch (e) { } catch (e) {
await loadExtension(driver, extensionId) await driver.get(extensionUri)
} }
await delay(regularDelayMs) await delay(regularDelayMs)
}) })
@ -240,7 +238,7 @@ describe('MetaMask', function () {
await word11.click() await word11.click()
await delay(tinyDelayMs) await delay(tinyDelayMs)
} catch (e) { } catch (e) {
await loadExtension(driver, extensionId) await driver.get(extensionUri)
await retypeSeedPhrase(words) await retypeSeedPhrase(words)
} }
} }
@ -597,7 +595,7 @@ describe('MetaMask', function () {
await driver.close() await driver.close()
await driver.switchTo().window(extension) await driver.switchTo().window(extension)
await loadExtension(driver, extensionId) await driver.get(extensionUri)
await driver.switchTo().window(extension) await driver.switchTo().window(extension)
await delay(regularDelayMs) await delay(regularDelayMs)

Loading…
Cancel
Save