mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
test - e2e - beta - dont select localhost as it is already set
This commit is contained in:
parent
4773a7f3ec
commit
9d1b4cc1d7
@ -63,16 +63,6 @@ describe('Using MetaMask with an existing account', 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 findElements(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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user