Skip to content

Commit

Permalink
fix e2e test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Aug 20, 2020
1 parent 7d29ad2 commit 0de5f29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/metamask-ui.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,13 +666,13 @@ describe('MetaMask', function () {
await driver.wait(until.elementTextMatches(contractStatus, /Deployed/u), 15000)

await driver.clickElement(By.css('#depositButton'))
await driver.delay(largeDelayMs)
await driver.delay(largeDelayMs * 2)

contractStatus = await driver.findElement(By.css('#contractStatus'))
await driver.wait(until.elementTextMatches(contractStatus, /Deposit\sinitiated/u), 10000)

await driver.switchToWindow(extension)
await driver.delay(largeDelayMs * 2)
await driver.delay(largeDelayMs * 3)

await driver.findElements(By.css('.transaction-list-item'))
const txListValue = await driver.findClickableElement(By.css('.transaction-list-item__primary-currency'))
Expand Down Expand Up @@ -770,7 +770,7 @@ describe('MetaMask', function () {
await driver.delay(regularDelayMs * 2)

await driver.clickElement(By.xpath(`//button[contains(text(), 'Create Token')]`))
await driver.delay(largeDelayMs)
await driver.delay(largeDelayMs * 3)

windowHandles = await driver.getAllWindowHandles()
const popup = windowHandles[2]
Expand Down Expand Up @@ -1006,7 +1006,7 @@ describe('MetaMask', function () {
await driver.delay(regularDelayMs)

await driver.switchToWindow(dapp)
await driver.delay(tinyDelayMs)
await driver.delay(largeDelayMs * 2)

await driver.clickElement(By.xpath(`//button[contains(text(), 'Approve Tokens')]`))

Expand Down

0 comments on commit 0de5f29

Please sign in to comment.