aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-07-12 01:21:58 +0800
committerDan <danjm.com@gmail.com>2018-07-12 01:21:58 +0800
commit8912955765e41c7d57ac6252e003ab10f5db6b7e (patch)
treee063fc73b12cf607b64c42e6072549dc8e11cde5 /test/e2e
parente91d87efd91bce3d893a20832a2d2361cbd256ee (diff)
downloadtangerine-wallet-browser-8912955765e41c7d57ac6252e003ab10f5db6b7e.tar
tangerine-wallet-browser-8912955765e41c7d57ac6252e003ab10f5db6b7e.tar.gz
tangerine-wallet-browser-8912955765e41c7d57ac6252e003ab10f5db6b7e.tar.bz2
tangerine-wallet-browser-8912955765e41c7d57ac6252e003ab10f5db6b7e.tar.lz
tangerine-wallet-browser-8912955765e41c7d57ac6252e003ab10f5db6b7e.tar.xz
tangerine-wallet-browser-8912955765e41c7d57ac6252e003ab10f5db6b7e.tar.zst
tangerine-wallet-browser-8912955765e41c7d57ac6252e003ab10f5db6b7e.zip
Wait for submitted tx list item amounts to match the expected before clicking through. (e2e beta tests)
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index c4db925c4..fd75bd2f6 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -546,8 +546,9 @@ describe('MetaMask', function () {
await driver.switchTo().window(extension)
await delay(regularDelayMs)
- const txListItem = await findElement(driver, By.xpath(`//span[contains(text(), '4 ETH')]`))
- await txListItem.click()
+ const [txListValue] = await findElements(driver, By.css('.tx-list-value'))
+ await driver.wait(until.elementTextMatches(txListValue, /4\sETH/), 10000)
+ await txListValue.click()
await delay(regularDelayMs)
// Set the gas limit
@@ -796,12 +797,12 @@ describe('MetaMask', function () {
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/))
- await txListItem.click()
+ await driver.wait(until.elementTextMatches(txListValue, /7\sTST/), 10000)
+ await txListValue.click()
await delay(regularDelayMs)
// Set the gas limit
- const configureGas = await driver.wait(until.elementLocated(By.css('.confirm-detail-row__header-text--edit')))
+ const configureGas = await driver.wait(until.elementLocated(By.css('.confirm-detail-row__header-text--edit')), 10000)
await configureGas.click()
await delay(regularDelayMs)