aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 0fc61ed41..46e8620f8 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -591,6 +591,7 @@ describe('MetaMask', function () {
await driver.close()
await driver.switchTo().window(extension)
await loadExtension(driver, extensionId)
+ await driver.switchTo().window(extension)
await delay(regularDelayMs)
})
@@ -676,7 +677,13 @@ 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/), 10000)
+
+ // test cancelled on firefox until https://github.com/mozilla/geckodriver/issues/906 is resolved,
+ // or possibly until we use latest version of firefox in the tests
+ if (process.env.SELENIUM_BROWSER !== 'firefox') {
+ 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/), 10000)
assert.equal(await tx.getText(), 'Confirmed')