mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Retry transaction list item click in 'adds multiple transactions' tests first click fails.
This commit is contained in:
parent
10097b6a11
commit
3aa7693103
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user