aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/beta/metamask-beta-ui.spec.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-27 22:30:29 +0800
committerDan <danjm.com@gmail.com>2018-06-27 23:25:30 +0800
commitbec3fa3dbf88699bc3db48b58beb5220914593af (patch)
tree60f521fedae9389a4b329ed525950270bf833dc9 /test/e2e/beta/metamask-beta-ui.spec.js
parent669f2437c7e65f0a6e7370bb3e265b3e4177e8d8 (diff)
downloadtangerine-wallet-browser-bec3fa3dbf88699bc3db48b58beb5220914593af.tar
tangerine-wallet-browser-bec3fa3dbf88699bc3db48b58beb5220914593af.tar.gz
tangerine-wallet-browser-bec3fa3dbf88699bc3db48b58beb5220914593af.tar.bz2
tangerine-wallet-browser-bec3fa3dbf88699bc3db48b58beb5220914593af.tar.lz
tangerine-wallet-browser-bec3fa3dbf88699bc3db48b58beb5220914593af.tar.xz
tangerine-wallet-browser-bec3fa3dbf88699bc3db48b58beb5220914593af.tar.zst
tangerine-wallet-browser-bec3fa3dbf88699bc3db48b58beb5220914593af.zip
Fix add existing token test (e2e beta tests).
Diffstat (limited to 'test/e2e/beta/metamask-beta-ui.spec.js')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 12a194e3a..44610975a 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -836,9 +836,7 @@ describe('MetaMask', function () {
it('renders the balance for the chosen token', async () => {
const balance = await findElement(driver, By.css('.tx-view .balance-display .token-amount'))
- await driver.wait(until.elementTextIs(balance, '0BAT'))
- const tokenAmount = await balance.getText()
- assert.equal(tokenAmount, '0BAT')
+ await driver.wait(until.elementTextMatches(balance, /0\sBAT/))
await delay(regularDelayMs)
})
})