aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-23 00:00:27 +0800
committerDan <danjm.com@gmail.com>2018-06-27 21:38:17 +0800
commita6cb13422de26e7d6bcecda03fb4756d3bf6ed67 (patch)
tree7d22d4307e4b981c23b56b3df2cbf3a10c4a6e6e /test
parentc343a1254383dbc55c557f1facedbdfe0784e3e4 (diff)
downloadtangerine-wallet-browser-a6cb13422de26e7d6bcecda03fb4756d3bf6ed67.tar
tangerine-wallet-browser-a6cb13422de26e7d6bcecda03fb4756d3bf6ed67.tar.gz
tangerine-wallet-browser-a6cb13422de26e7d6bcecda03fb4756d3bf6ed67.tar.bz2
tangerine-wallet-browser-a6cb13422de26e7d6bcecda03fb4756d3bf6ed67.tar.lz
tangerine-wallet-browser-a6cb13422de26e7d6bcecda03fb4756d3bf6ed67.tar.xz
tangerine-wallet-browser-a6cb13422de26e7d6bcecda03fb4756d3bf6ed67.tar.zst
tangerine-wallet-browser-a6cb13422de26e7d6bcecda03fb4756d3bf6ed67.zip
Wait for element text match in metamask-beta-ui e2e send token test
Diffstat (limited to 'test')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index d5f41a6ef..efd391003 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -661,8 +661,7 @@ describe('MetaMask', function () {
const txValues = await findElements(driver, By.css('.tx-list-value'))
assert.equal(txValues.length, 1)
- await delay(regularDelayMs)
- assert.equal(await txValues[0].getText(), '50 TST')
+ await driver.wait(until.elementTextMatches(txValues[0], /50\sTST/))
const txStatuses = await findElements(driver, By.css('.tx-list-status'))
const tx = await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed|Failed/))
assert.equal(await tx.getText(), 'Confirmed')
@@ -740,8 +739,7 @@ describe('MetaMask', function () {
assert.equal(transactions.length, 8)
const txValues = await findElements(driver, By.css('.tx-list-value'))
- assert.equal(txValues.length, 8)
- assert.equal(await txValues[0].getText(), '26 TST')
+ await driver.wait(until.elementTextMatches(txValues[0], /26\sTST/))
const txStatuses = await findElements(driver, By.css('.tx-list-status'))
await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed/))