aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-26 20:40:04 +0800
committerDan <danjm.com@gmail.com>2018-06-27 21:38:17 +0800
commitb029085fbe2d3539fa125d23debef30d0a6aa9d3 (patch)
tree0d17f7b730cd200bd03e3907ed7c609a08f35615
parent6c8f4b2dea2a46287bc2c69aef28c12d6a1110f6 (diff)
downloadtangerine-wallet-browser-b029085fbe2d3539fa125d23debef30d0a6aa9d3.tar
tangerine-wallet-browser-b029085fbe2d3539fa125d23debef30d0a6aa9d3.tar.gz
tangerine-wallet-browser-b029085fbe2d3539fa125d23debef30d0a6aa9d3.tar.bz2
tangerine-wallet-browser-b029085fbe2d3539fa125d23debef30d0a6aa9d3.tar.lz
tangerine-wallet-browser-b029085fbe2d3539fa125d23debef30d0a6aa9d3.tar.xz
tangerine-wallet-browser-b029085fbe2d3539fa125d23debef30d0a6aa9d3.tar.zst
tangerine-wallet-browser-b029085fbe2d3539fa125d23debef30d0a6aa9d3.zip
Disable e2e beta assertion after first token addition because of firefox / webdriver bug.
-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')