From bec3fa3dbf88699bc3db48b58beb5220914593af Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 27 Jun 2018 12:00:29 -0230 Subject: [PATCH] Fix add existing token test (e2e beta tests). --- test/e2e/beta/metamask-beta-ui.spec.js | 4 +--- 1 file changed, 1 insertion(+), 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) }) })