aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-10-17 04:54:34 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-10-18 02:19:29 +0800
commit42fa54678fbb1a170a8b88e3fec54d7d9d44c303 (patch)
tree65553647cefead4f5a4c65ab82c5f90df9465074 /test
parent97b914abea62a5e2ced1ecd40285e12325525fb9 (diff)
downloadtangerine-wallet-browser-42fa54678fbb1a170a8b88e3fec54d7d9d44c303.tar
tangerine-wallet-browser-42fa54678fbb1a170a8b88e3fec54d7d9d44c303.tar.gz
tangerine-wallet-browser-42fa54678fbb1a170a8b88e3fec54d7d9d44c303.tar.bz2
tangerine-wallet-browser-42fa54678fbb1a170a8b88e3fec54d7d9d44c303.tar.lz
tangerine-wallet-browser-42fa54678fbb1a170a8b88e3fec54d7d9d44c303.tar.xz
tangerine-wallet-browser-42fa54678fbb1a170a8b88e3fec54d7d9d44c303.tar.zst
tangerine-wallet-browser-42fa54678fbb1a170a8b88e3fec54d7d9d44c303.zip
Extract Add Token button into its own component
Diffstat (limited to 'test')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 12cf91227..f29f242c1 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -662,7 +662,7 @@ describe('MetaMask', function () {
})
it('clicks on the Add Token button', async () => {
- const addToken = await driver.findElement(By.css('.wallet-view__add-token-button'))
+ const addToken = await driver.findElement(By.xpath(`//div[contains(text(), 'Add Token')]`))
await addToken.click()
await delay(regularDelayMs)
})
@@ -1002,7 +1002,7 @@ describe('MetaMask', function () {
describe('Add existing token using search', () => {
it('clicks on the Add Token button', async () => {
- const addToken = await findElement(driver, By.xpath(`//button[contains(text(), 'Add Token')]`))
+ const addToken = await findElement(driver, By.xpath(`//div[contains(text(), 'Add Token')]`))
await addToken.click()
await delay(regularDelayMs)
})