Skip to content

Commit

Permalink
Update e2e tests for connect screen multi-select changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Feb 25, 2020
1 parent 9e3af85 commit 614c64c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/ethereum-on.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const webdriver = require('selenium-webdriver')

const { By, until } = webdriver
const {
tinyDelayMs,
regularDelayMs,
largeDelayMs,
} = require('./helpers')
Expand Down Expand Up @@ -127,6 +128,8 @@ describe('MetaMask', function () {

await driver.clickElement(By.css('.permissions-connect-choose-account__account'))

await driver.clickElement(By.xpath(`//button[contains(text(), 'Next')]`))
await driver.delay(tinyDelayMs)
await driver.clickElement(By.xpath(`//button[contains(text(), 'Submit')]`))

await driver.waitUntilXWindowHandles(2)
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/metamask-ui.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ describe('MetaMask', function () {

await driver.clickElement(By.css('.permissions-connect-choose-account__account'))

await driver.clickElement(By.xpath(`//button[contains(text(), 'Next')]`))
await driver.delay(tinyDelayMs)
await driver.clickElement(By.xpath(`//button[contains(text(), 'Submit')]`))

await driver.waitUntilXWindowHandles(2)
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/permissions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const webdriver = require('selenium-webdriver')

const { By, until } = webdriver
const {
tinyDelayMs,
regularDelayMs,
largeDelayMs,
} = require('./helpers')
Expand Down Expand Up @@ -125,6 +126,8 @@ describe('MetaMask', function () {

await driver.clickElement(By.css('.permissions-connect-choose-account__account'))

await driver.clickElement(By.xpath(`//button[contains(text(), 'Next')]`))
await driver.delay(tinyDelayMs)
await driver.clickElement(By.xpath(`//button[contains(text(), 'Submit')]`))

await driver.waitUntilXWindowHandles(2)
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/signature-request.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const webdriver = require('selenium-webdriver')

const { By, Key, until } = webdriver
const {
tinyDelayMs,
regularDelayMs,
largeDelayMs,
} = require('./helpers')
Expand Down Expand Up @@ -86,6 +87,8 @@ describe('MetaMask', function () {

await driver.clickElement(By.css('.permissions-connect-choose-account__account'))

await driver.clickElement(By.xpath(`//button[contains(text(), 'Next')]`))
await driver.delay(tinyDelayMs)
await driver.clickElement(By.xpath(`//button[contains(text(), 'Submit')]`))

await driver.waitUntilXWindowHandles(2)
Expand Down

0 comments on commit 614c64c

Please sign in to comment.