diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-07-27 00:02:17 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-28 22:29:51 +0800 |
commit | 07c0cd59d4b670eafc5d6c20ab9f54faa841ee1c (patch) | |
tree | 75e3ad730e2a36995c8842312cd7c998247764da /test | |
parent | 915c4fd1b1c6a52016c576a418ea460d1bd44fa7 (diff) | |
download | tangerine-wallet-browser-07c0cd59d4b670eafc5d6c20ab9f54faa841ee1c.tar tangerine-wallet-browser-07c0cd59d4b670eafc5d6c20ab9f54faa841ee1c.tar.gz tangerine-wallet-browser-07c0cd59d4b670eafc5d6c20ab9f54faa841ee1c.tar.bz2 tangerine-wallet-browser-07c0cd59d4b670eafc5d6c20ab9f54faa841ee1c.tar.lz tangerine-wallet-browser-07c0cd59d4b670eafc5d6c20ab9f54faa841ee1c.tar.xz tangerine-wallet-browser-07c0cd59d4b670eafc5d6c20ab9f54faa841ee1c.tar.zst tangerine-wallet-browser-07c0cd59d4b670eafc5d6c20ab9f54faa841ee1c.zip |
New ui e2e tests switch to localhost provider (needed after new ui selection screen addition).
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/beta/from-import-beta-ui.spec.js | 10 | ||||
-rw-r--r-- | test/e2e/beta/metamask-beta-ui.spec.js | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/e2e/beta/from-import-beta-ui.spec.js b/test/e2e/beta/from-import-beta-ui.spec.js index c271461d3..92e5be715 100644 --- a/test/e2e/beta/from-import-beta-ui.spec.js +++ b/test/e2e/beta/from-import-beta-ui.spec.js @@ -229,6 +229,16 @@ describe('Using MetaMask with an existing account', function () { }) describe('Add an account', () => { + it('switches to localhost', async () => { + const networkDropdown = await findElement(driver, By.css('.network-name')) + await networkDropdown.click() + await delay(regularDelayMs) + + const [localhost] = await findElements(driver, By.xpath(`//span[contains(text(), 'Localhost')]`)) + await localhost.click() + await delay(largeDelayMs * 2) + }) + it('choose Create Account from the account menu', async () => { await driver.findElement(By.css('.account-menu__icon')).click() await delay(regularDelayMs) diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index 1590e6d35..6a169de76 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -387,6 +387,16 @@ describe('MetaMask', function () { await delay(regularDelayMs) }) + it('switches to localhost', async () => { + const networkDropdown = await findElement(driver, By.css('.network-name')) + await networkDropdown.click() + await delay(regularDelayMs) + + const [localhost] = await findElements(driver, By.xpath(`//span[contains(text(), 'Localhost')]`)) + await localhost.click() + await delay(largeDelayMs * 2) + }) + it('balance renders', async () => { const balance = await findElement(driver, By.css('.balance-display .token-amount')) await driver.wait(until.elementTextMatches(balance, /100.+ETH/)) |