Skip to content

Commit

Permalink
Add some needed slow downs to e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Oct 5, 2019
1 parent 202af78 commit 11c5b15
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 @@ -567,18 +567,18 @@ describe('MetaMask', function () {

const send3eth = await findElement(driver, By.xpath(`//button[contains(text(), 'Send')]`), 10000)
await send3eth.click()
await delay(regularDelayMs)
await delay(largeDelayMs * 2)

const contractDeployment = await findElement(driver, By.xpath(`//button[contains(text(), 'Deploy Contract')]`), 10000)
await contractDeployment.click()
await delay(regularDelayMs)
await delay(largeDelayMs * 2)

await send3eth.click()
await contractDeployment.click()
await delay(regularDelayMs)
await delay(largeDelayMs * 2)

await driver.switchTo().window(extension)
await delay(regularDelayMs)
await delay(largeDelayMs * 2)

let transactions = await findElements(driver, By.css('.transaction-list-item'))
await transactions[3].click()
Expand Down

0 comments on commit 11c5b15

Please sign in to comment.