1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00

Disable e2e beta assertion after first token addition because of firefox / webdriver bug.

This commit is contained in:
Dan 2018-06-26 10:10:04 -02:30
parent 6c8f4b2dea
commit b029085fbe

View File

@ -591,6 +591,7 @@ describe('MetaMask', function () {
await driver.close() await driver.close()
await driver.switchTo().window(extension) await driver.switchTo().window(extension)
await loadExtension(driver, extensionId) await loadExtension(driver, extensionId)
await driver.switchTo().window(extension)
await delay(regularDelayMs) await delay(regularDelayMs)
}) })
@ -676,7 +677,13 @@ describe('MetaMask', function () {
const txValues = await findElements(driver, By.css('.tx-list-value')) const txValues = await findElements(driver, By.css('.tx-list-value'))
assert.equal(txValues.length, 1) 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 txStatuses = await findElements(driver, By.css('.tx-list-status'))
const tx = await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed|Failed/), 10000) const tx = await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed|Failed/), 10000)
assert.equal(await tx.getText(), 'Confirmed') assert.equal(await tx.getText(), 'Confirmed')