1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Add timeouts to certain beta e2e driver.waits.

This commit is contained in:
Dan 2018-06-22 17:33:22 -02:30
parent 31bb8a0ab7
commit 686d14f42d

View File

@ -676,9 +676,9 @@ describe('MetaMask', function () {
const txValues = await findElements(driver, By.css('.tx-list-value'))
assert.equal(txValues.length, 1)
await driver.wait(until.elementTextMatches(txValues[0], /50\sTST/))
await driver.wait(until.elementTextMatches(txValues[0], /50\sTST/), 10000)
const txStatuses = await findElements(driver, By.css('.tx-list-status'))
const tx = await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed|Failed/))
const tx = await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed|Failed/), 10000)
assert.equal(await tx.getText(), 'Confirmed')
})
})