aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-07-12 02:17:17 +0800
committerDan <danjm.com@gmail.com>2018-07-12 02:17:17 +0800
commit07322bc404692625ceac06722df12ff179f26c6f (patch)
tree91da121ed3eecc96daf56ce469ddacc57ce703a7
parent05ee2b7401cbbcf120eb627d0ad54122c05f85b0 (diff)
downloadtangerine-wallet-browser-07322bc404692625ceac06722df12ff179f26c6f.tar
tangerine-wallet-browser-07322bc404692625ceac06722df12ff179f26c6f.tar.gz
tangerine-wallet-browser-07322bc404692625ceac06722df12ff179f26c6f.tar.bz2
tangerine-wallet-browser-07322bc404692625ceac06722df12ff179f26c6f.tar.lz
tangerine-wallet-browser-07322bc404692625ceac06722df12ff179f26c6f.tar.xz
tangerine-wallet-browser-07322bc404692625ceac06722df12ff179f26c6f.tar.zst
tangerine-wallet-browser-07322bc404692625ceac06722df12ff179f26c6f.zip
Wait for an element with a .tx-list-pending-item-container to be rendered before attempting to select the tx-list-item. (e2e beta tests)
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 39199c1e1..caa49d450 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -550,6 +550,7 @@ describe('MetaMask', function () {
await driver.switchTo().window(extension)
await delay(regularDelayMs)
+ await findElements(driver, By.css('.tx-list-pending-item-container'))
const [txListValue] = await findElements(driver, By.css('.tx-list-value'))
await driver.wait(until.elementTextMatches(txListValue, /4\sETH/), 10000)
await txListValue.click()
@@ -799,6 +800,7 @@ describe('MetaMask', function () {
await driver.switchTo().window(extension)
await delay(largeDelayMs)
+ await findElements(driver, By.css('.tx-list-pending-item-container'))
const [txListValue] = await findElements(driver, By.css('.tx-list-value'))
await driver.wait(until.elementTextMatches(txListValue, /7\sTST/), 10000)
await txListValue.click()