aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-07-12 01:43:32 +0800
committerDan <danjm.com@gmail.com>2018-07-12 01:43:32 +0800
commit05ee2b7401cbbcf120eb627d0ad54122c05f85b0 (patch)
tree71a3245f2ab054cf6eab6c007b6ea7288fbf79eb /test
parent8912955765e41c7d57ac6252e003ab10f5db6b7e (diff)
downloadtangerine-wallet-browser-05ee2b7401cbbcf120eb627d0ad54122c05f85b0.tar
tangerine-wallet-browser-05ee2b7401cbbcf120eb627d0ad54122c05f85b0.tar.gz
tangerine-wallet-browser-05ee2b7401cbbcf120eb627d0ad54122c05f85b0.tar.bz2
tangerine-wallet-browser-05ee2b7401cbbcf120eb627d0ad54122c05f85b0.tar.lz
tangerine-wallet-browser-05ee2b7401cbbcf120eb627d0ad54122c05f85b0.tar.xz
tangerine-wallet-browser-05ee2b7401cbbcf120eb627d0ad54122c05f85b0.tar.zst
tangerine-wallet-browser-05ee2b7401cbbcf120eb627d0ad54122c05f85b0.zip
Reattempt to find network selector; wait for network selector dropdown to contain localhost before attempting to click. (e2e beta tests)
Diffstat (limited to 'test')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index fd75bd2f6..39199c1e1 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -84,15 +84,19 @@ describe('MetaMask', function () {
networkSelector = await findElement(driver, By.css('#network_component'))
} catch (e) {
await loadExtension(driver, extensionId)
+ await delay(largeDelayMs * 2)
+ networkSelector = await findElement(driver, By.css('#network_component'))
}
await delay(regularDelayMs)
})
- it('use the local network', async function () {
+ it('uses the local network', async function () {
await networkSelector.click()
await delay(regularDelayMs)
- const localhost = await findElement(driver, By.xpath(`//li[contains(text(), 'Localhost')]`))
+ const networks = await findElements(driver, By.css('.dropdown-menu-item'))
+ const localhost = networks[4]
+ await driver.wait(until.elementTextMatches(localhost, /Localhost/))
await localhost.click()
await delay(regularDelayMs)
})
@@ -795,7 +799,6 @@ describe('MetaMask', function () {
await driver.switchTo().window(extension)
await delay(largeDelayMs)
- const [txListItem] = await findElements(driver, By.css('.tx-list-item'))
const [txListValue] = await findElements(driver, By.css('.tx-list-value'))
await driver.wait(until.elementTextMatches(txListValue, /7\sTST/), 10000)
await txListValue.click()