From c1fcee721ae1932aff49f21153a1af85f6c572a2 Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Wed, 22 Jul 2020 14:37:16 -0500 Subject: [PATCH] update eth-token-tracker --- package.json | 2 +- test/e2e/metamask-ui.spec.js | 6 +++--- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index e2e011d7f1e0..d0b2a48b63e3 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@material-ui/core": "^4.11.0", "@metamask/controllers": "^2.0.1", "@metamask/eth-ledger-bridge-keyring": "^0.2.6", - "@metamask/eth-token-tracker": "^2.0.0", + "@metamask/eth-token-tracker": "^3.0.0", "@metamask/etherscan-link": "^1.1.0", "@metamask/inpage-provider": "^6.1.0", "@popperjs/core": "^2.4.0", diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index ffc154412bad..15d0198cd446 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -830,9 +830,9 @@ describe('MetaMask', function () { it('renders the balance for the new token', async function () { const balance = await driver.findElement(By.css('.wallet-overview .token-overview__primary-balance')) - await driver.wait(until.elementTextMatches(balance, /^10.000\s*TST\s*$/)) + await driver.wait(until.elementTextMatches(balance, /^10\s*TST\s*$/)) const tokenAmount = await balance.getText() - assert.ok(/^10.000\s*TST\s*$/.test(tokenAmount)) + assert.ok(/^10\s*TST\s*$/.test(tokenAmount)) await driver.delay(regularDelayMs) }) }) @@ -992,7 +992,7 @@ describe('MetaMask', function () { await driver.wait(until.elementTextMatches(txStatuses[0], /Send\sTST/), 10000) const tokenBalanceAmount = await driver.findElements(By.css('.token-overview__primary-balance')) - await driver.wait(until.elementTextMatches(tokenBalanceAmount[0], /7.500\s*TST/), 10000) + await driver.wait(until.elementTextMatches(tokenBalanceAmount[0], /7.5\s*TST/), 10000) }) }) diff --git a/yarn.lock b/yarn.lock index 3c36a7d35100..0290b9ac1b63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1730,10 +1730,10 @@ events "^2.0.0" hdkey "0.8.0" -"@metamask/eth-token-tracker@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@metamask/eth-token-tracker/-/eth-token-tracker-2.0.0.tgz#a94a99bd3160ee85ec5feace29fbb02f80f5c826" - integrity sha512-PTiUbx7JulDREswWmebRyIj2wNUV8eLTZWGEA2Duca8IGVP1r8q+kb163tXT4FNNAGR+6JoVvkJ8SpIN+XoiNQ== +"@metamask/eth-token-tracker@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@metamask/eth-token-tracker/-/eth-token-tracker-3.0.0.tgz#16ad4820abd6603d745c8cdaf7c5a9ae60e6db02" + integrity sha512-UxYkmEMrUYb8wzsqEY8x6QeiW2955guR/aaalqfElI2rlDyvKJ1lIaAiT7y642vcqoyIGhqYG2aejeHDpifMbA== dependencies: deep-equal "^1.1.0" eth-block-tracker "^4.4.2"