diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-08-13 20:57:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-13 20:57:18 +0800 |
commit | e321feb92df92f7581ccc468dd735937ce3d4d9a (patch) | |
tree | e140e33e35c395f857b9fcbfe596e5a84933508b /test/e2e/metamask-ui.spec.js | |
parent | 22b20837d4b3447d4edfd68caf76eb787a469af1 (diff) | |
download | tangerine-wallet-browser-e321feb92df92f7581ccc468dd735937ce3d4d9a.tar.gz tangerine-wallet-browser-e321feb92df92f7581ccc468dd735937ce3d4d9a.tar.zst tangerine-wallet-browser-e321feb92df92f7581ccc468dd735937ce3d4d9a.zip |
Fix Firefox e2e test command on CI (#7000)
* Skip a few Firefox tests to get them passing again
* ci: Fix Firefox e2e test command
This is my bad, introduced in 7fc84f3cc087deab5d937ee589de56fa40cd7ced
Diffstat (limited to 'test/e2e/metamask-ui.spec.js')
-rw-r--r-- | test/e2e/metamask-ui.spec.js | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index 8d0942dc6..90f320904 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -1247,7 +1247,9 @@ describe('MetaMask', function () { const transferTokens = await findElement(driver, By.xpath(`//button[contains(text(), 'Approve Tokens')]`)) await transferTokens.click() - await closeAllWindowHandlesExcept(driver, [extension, dapp]) + if (process.env.SELENIUM_BROWSER !== 'firefox') { + await closeAllWindowHandlesExcept(driver, [extension, dapp]) + } await driver.switchTo().window(extension) await delay(regularDelayMs) @@ -1341,6 +1343,10 @@ describe('MetaMask', function () { }) it('finds the transaction in the transactions list', async function () { + if (process.env.SELENIUM_BROWSER === 'firefox') { + this.skip() + } + await driver.wait(async () => { const confirmedTxes = await findElements(driver, By.css('.transaction-list__completed-transactions .transaction-list-item')) return confirmedTxes.length === 3 @@ -1354,6 +1360,12 @@ describe('MetaMask', function () { }) describe('Tranfers a custom token from dapp when no gas value is specified', () => { + before(function () { + if (process.env.SELENIUM_BROWSER === 'firefox') { + this.skip() + } + }) + it('transfers an already created token, without specifying gas', async () => { const windowHandles = await driver.getAllWindowHandles() const extension = windowHandles[0] @@ -1403,6 +1415,12 @@ describe('MetaMask', function () { }) describe('Approves a custom token from dapp when no gas value is specified', () => { + before(function () { + if (process.env.SELENIUM_BROWSER === 'firefox') { + this.skip() + } + }) + it('approves an already created token', async () => { const windowHandles = await driver.getAllWindowHandles() const extension = windowHandles[0] |