diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-08-11 01:11:49 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-08-11 01:11:49 +0800 |
commit | 42834fe8be0d89f665d2c24748024c035c6b5d63 (patch) | |
tree | 7d94c65c61fa733140717536c54f763365aa9466 /test | |
parent | 6f2c4809b6107cbce8462c69a5a78f5965cd6b12 (diff) | |
download | tangerine-wallet-browser-42834fe8be0d89f665d2c24748024c035c6b5d63.tar tangerine-wallet-browser-42834fe8be0d89f665d2c24748024c035c6b5d63.tar.gz tangerine-wallet-browser-42834fe8be0d89f665d2c24748024c035c6b5d63.tar.bz2 tangerine-wallet-browser-42834fe8be0d89f665d2c24748024c035c6b5d63.tar.lz tangerine-wallet-browser-42834fe8be0d89f665d2c24748024c035c6b5d63.tar.xz tangerine-wallet-browser-42834fe8be0d89f665d2c24748024c035c6b5d63.tar.zst tangerine-wallet-browser-42834fe8be0d89f665d2c24748024c035c6b5d63.zip |
fix e2e tests
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/beta/from-import-beta-ui.spec.js | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/test/e2e/beta/from-import-beta-ui.spec.js b/test/e2e/beta/from-import-beta-ui.spec.js index 5582d4697..2b271cdfe 100644 --- a/test/e2e/beta/from-import-beta-ui.spec.js +++ b/test/e2e/beta/from-import-beta-ui.spec.js @@ -363,36 +363,7 @@ describe('Using MetaMask with an existing account', function () { await connectButtons[0].click() await delay(regularDelayMs) const allWindows = await driver.getAllWindowHandles() - switch (process.env.SELENIUM_BROWSER) { - case 'chrome': - assert.equal(allWindows.length, 2) - break - default: - assert.equal(allWindows.length, 1) - } - }) - - it('should show the "Browser not supported" screen for non Chrome browsers', async () => { - if (process.env.SELENIUM_BROWSER !== 'chrome') { - const title = await findElements(driver, By.xpath(`//h3[contains(text(), 'Your Browser is not supported...')]`)) - assert.equal(title.length, 1) - - const downloadChromeButtons = await findElements(driver, By.xpath(`//button[contains(text(), 'Download Google Chrome')]`)) - assert.equal(downloadChromeButtons.length, 1) - - await downloadChromeButtons[0].click() - await delay(regularDelayMs) - - const [newUITab, downloadChromeTab] = await driver.getAllWindowHandles() - - await driver.switchTo().window(downloadChromeTab) - await delay(regularDelayMs) - const tabUrl = await driver.getCurrentUrl() - assert.equal(tabUrl, 'https://www.google.com/chrome/') - await driver.close() - await delay(regularDelayMs) - await driver.switchTo().window(newUITab) - } + assert.equal(allWindows.length, 2) }) }) }) |