aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2019-03-29 00:05:40 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-03-29 02:50:11 +0800
commit3aa76931035e9aec1e29bf523226aef94be1b6fd (patch)
treecd41ac7d9d08ea04d304a8450e3e138e2bc4e950
parent10097b6a1140d87aef0d8b982115dd6dba90dbe1 (diff)
downloadtangerine-wallet-browser-3aa76931035e9aec1e29bf523226aef94be1b6fd.tar
tangerine-wallet-browser-3aa76931035e9aec1e29bf523226aef94be1b6fd.tar.gz
tangerine-wallet-browser-3aa76931035e9aec1e29bf523226aef94be1b6fd.tar.bz2
tangerine-wallet-browser-3aa76931035e9aec1e29bf523226aef94be1b6fd.tar.lz
tangerine-wallet-browser-3aa76931035e9aec1e29bf523226aef94be1b6fd.tar.xz
tangerine-wallet-browser-3aa76931035e9aec1e29bf523226aef94be1b6fd.tar.zst
tangerine-wallet-browser-3aa76931035e9aec1e29bf523226aef94be1b6fd.zip
Retry transaction list item click in 'adds multiple transactions' tests first click fails.
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 0c9c59e55..40856731e 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -612,9 +612,16 @@ describe('MetaMask', function () {
await driver.switchTo().window(extension)
await delay(regularDelayMs)
- const transactions = await findElements(driver, By.css('.transaction-list-item'))
+ let transactions = await findElements(driver, By.css('.transaction-list-item'))
await transactions[3].click()
await delay(regularDelayMs)
+ try {
+ transactions = await findElements(driver, By.css('.transaction-list-item'), 1000)
+ await transactions[3].click()
+ } catch (e) {
+ console.log(e)
+ }
+ await delay(regularDelayMs)
})
it('navigates the transactions', async () => {