diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-08-24 10:19:48 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-08-24 10:19:48 +0800 |
commit | c0e97d17393c9ce5024af8626c1bafc5d5b4efe4 (patch) | |
tree | dbe6a7883f5851aaef0229674296eeadd34b4bcb /test/e2e | |
parent | 342522c6cf23670f931e69ba822eedfd2d6ee252 (diff) | |
download | tangerine-wallet-browser-c0e97d17393c9ce5024af8626c1bafc5d5b4efe4.tar tangerine-wallet-browser-c0e97d17393c9ce5024af8626c1bafc5d5b4efe4.tar.gz tangerine-wallet-browser-c0e97d17393c9ce5024af8626c1bafc5d5b4efe4.tar.bz2 tangerine-wallet-browser-c0e97d17393c9ce5024af8626c1bafc5d5b4efe4.tar.lz tangerine-wallet-browser-c0e97d17393c9ce5024af8626c1bafc5d5b4efe4.tar.xz tangerine-wallet-browser-c0e97d17393c9ce5024af8626c1bafc5d5b4efe4.tar.zst tangerine-wallet-browser-c0e97d17393c9ce5024af8626c1bafc5d5b4efe4.zip |
Fix tests
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/beta/metamask-beta-ui.spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index d427318ce..c9f759780 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -602,7 +602,7 @@ describe('MetaMask', function () { }) it('renders the correct ETH balance', async () => { - const balance = await findElement(driver, By.css('.token-view-balance__primary-balance')) + const balance = await findElement(driver, By.css('.transaction-view-balance__primary-balance')) await delay(regularDelayMs) if (process.env.SELENIUM_BROWSER !== 'firefox') { await driver.wait(until.elementTextMatches(balance, /^92.*ETH.*$/), 10000) @@ -675,7 +675,7 @@ describe('MetaMask', function () { }) it('renders the balance for the new token', async () => { - const balance = await findElement(driver, By.css('.token-view-balance .token-view-balance__token-balance')) + const balance = await findElement(driver, By.css('.transaction-view-balance .transaction-view-balance__token-balance')) await driver.wait(until.elementTextMatches(balance, /^100\s*TST\s*$/)) const tokenAmount = await balance.getText() assert.ok(/^100\s*TST\s*$/.test(tokenAmount)) @@ -854,7 +854,7 @@ describe('MetaMask', function () { // test cancelled on firefox until https://github.com/mozilla/geckodriver/issues/906 is resolved, // or possibly until we use latest version of firefox in the tests if (process.env.SELENIUM_BROWSER !== 'firefox') { - const tokenBalanceAmount = await findElement(driver, By.css('.token-view-balance__token-balance')) + const tokenBalanceAmount = await findElement(driver, By.css('.transaction-view-balance__token-balance')) assert.equal(await tokenBalanceAmount.getText(), '43 TST') } }) @@ -1015,7 +1015,7 @@ describe('MetaMask', function () { }) it('renders the balance for the chosen token', async () => { - const balance = await findElement(driver, By.css('.token-view-balance__token-balance')) + const balance = await findElement(driver, By.css('.transaction-view-balance__token-balance')) await driver.wait(until.elementTextMatches(balance, /0\sBAT/)) await delay(regularDelayMs) }) |