|
|
@ -51,6 +51,7 @@ describe('MetaMask', function () { |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.currentTest.state === 'failed') { |
|
|
|
if (this.currentTest.state === 'failed') { |
|
|
|
await verboseReportOnFailure({ browser, driver, title: this.currentTest.title }) |
|
|
|
await verboseReportOnFailure({ browser, driver, title: this.currentTest.title }) |
|
|
|
|
|
|
|
await delay(1000000) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -65,16 +66,6 @@ describe('MetaMask', function () { |
|
|
|
await delay(regularDelayMs) |
|
|
|
await delay(regularDelayMs) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
it('use the local network', async function () { |
|
|
|
|
|
|
|
const networkSelector = await findElement(driver, By.css('#network_component')) |
|
|
|
|
|
|
|
await networkSelector.click() |
|
|
|
|
|
|
|
await delay(regularDelayMs) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const localhost = await findElement(driver, By.xpath(`//li[contains(text(), 'Localhost')]`)) |
|
|
|
|
|
|
|
await localhost.click() |
|
|
|
|
|
|
|
await delay(regularDelayMs) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it('selects the new UI option', async () => { |
|
|
|
it('selects the new UI option', async () => { |
|
|
|
const button = await findElement(driver, By.xpath("//p[contains(text(), 'Try Beta Version')]")) |
|
|
|
const button = await findElement(driver, By.xpath("//p[contains(text(), 'Try Beta Version')]")) |
|
|
|
await button.click() |
|
|
|
await button.click() |
|
|
|