From 614c64cbc07a5763f90c7da6f9a14c9d041f7f45 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 25 Feb 2020 09:16:57 -0330 Subject: [PATCH] Update e2e tests for connect screen multi-select changes --- test/e2e/ethereum-on.spec.js | 3 +++ test/e2e/metamask-ui.spec.js | 2 ++ test/e2e/permissions.spec.js | 3 +++ test/e2e/signature-request.spec.js | 3 +++ 4 files changed, 11 insertions(+) diff --git a/test/e2e/ethereum-on.spec.js b/test/e2e/ethereum-on.spec.js index deb7c16f1b30..b187cf45372a 100644 --- a/test/e2e/ethereum-on.spec.js +++ b/test/e2e/ethereum-on.spec.js @@ -3,6 +3,7 @@ const webdriver = require('selenium-webdriver') const { By, until } = webdriver const { + tinyDelayMs, regularDelayMs, largeDelayMs, } = require('./helpers') @@ -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) diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index d2a1472da52d..cf73d12f3701 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -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) diff --git a/test/e2e/permissions.spec.js b/test/e2e/permissions.spec.js index d287cff6d202..0e35153976a8 100644 --- a/test/e2e/permissions.spec.js +++ b/test/e2e/permissions.spec.js @@ -3,6 +3,7 @@ const webdriver = require('selenium-webdriver') const { By, until } = webdriver const { + tinyDelayMs, regularDelayMs, largeDelayMs, } = require('./helpers') @@ -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) diff --git a/test/e2e/signature-request.spec.js b/test/e2e/signature-request.spec.js index b17bf48c572c..b58fe76e8d26 100644 --- a/test/e2e/signature-request.spec.js +++ b/test/e2e/signature-request.spec.js @@ -4,6 +4,7 @@ const webdriver = require('selenium-webdriver') const { By, Key, until } = webdriver const { + tinyDelayMs, regularDelayMs, largeDelayMs, } = require('./helpers') @@ -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)