aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-08-04 04:11:31 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-08-24 07:45:27 +0800
commit13c4ecd6101e57b9184b14f4e0136206843f51eb (patch)
treeffac442a5bba17db98e680a939d25f5add6844bc /test/e2e
parent5ddd9b55be0d8bd778822b4b401cbd22a7b57c54 (diff)
downloadtangerine-wallet-browser-13c4ecd6101e57b9184b14f4e0136206843f51eb.tar
tangerine-wallet-browser-13c4ecd6101e57b9184b14f4e0136206843f51eb.tar.gz
tangerine-wallet-browser-13c4ecd6101e57b9184b14f4e0136206843f51eb.tar.bz2
tangerine-wallet-browser-13c4ecd6101e57b9184b14f4e0136206843f51eb.tar.lz
tangerine-wallet-browser-13c4ecd6101e57b9184b14f4e0136206843f51eb.tar.xz
tangerine-wallet-browser-13c4ecd6101e57b9184b14f4e0136206843f51eb.tar.zst
tangerine-wallet-browser-13c4ecd6101e57b9184b14f4e0136206843f51eb.zip
Fix tests
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js17
1 files changed, 7 insertions, 10 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index bb562c83a..6bae5768b 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -414,12 +414,12 @@ describe('MetaMask', function () {
})
it('finds the transaction in the transactions list', async function () {
- const transactions = await findElements(driver, By.css('.tx-list-item'))
+ const transactions = await findElements(driver, By.css('.transaction-list-item'))
assert.equal(transactions.length, 1)
if (process.env.SELENIUM_BROWSER !== 'firefox') {
- const txValues = await findElement(driver, By.css('.tx-list-value'))
- await driver.wait(until.elementTextMatches(txValues, /1\sETH/), 10000)
+ const txValues = await findElement(driver, By.css('.transaction-list-item__amount--secondary'))
+ await driver.wait(until.elementTextMatches(txValues, /-1\sETH/), 10000)
}
})
})
@@ -457,14 +457,11 @@ describe('MetaMask', function () {
})
it('finds the transaction in the transactions list', async function () {
- const transactions = await findElements(driver, By.css('.tx-list-item'))
+ const transactions = await findElements(driver, By.css('.transaction-list-item'))
assert.equal(transactions.length, 2)
- const txStatuses = await findElements(driver, By.css('.tx-list-status'))
- await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed/))
-
- const txValues = await findElement(driver, By.css('.tx-list-value'))
- await driver.wait(until.elementTextMatches(txValues, /3\sETH/), 10000)
+ const txValues = await findElement(driver, By.css('.transaction-list-item__amount--secondary'))
+ await driver.wait(until.elementTextMatches(txValues, /-3\sETH/), 10000)
})
})
@@ -1071,4 +1068,4 @@ describe('MetaMask', function () {
}
})
})
-}) \ No newline at end of file
+})