aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/beta/metamask-beta-ui.spec.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-11 21:52:44 +0800
committerDan <danjm.com@gmail.com>2018-06-27 21:31:26 +0800
commitbf32aeaef26907369ae52ac2e9fcde7336d6760d (patch)
tree705d02cea458db0d396b19cb72e5de3bd190dda0 /test/e2e/beta/metamask-beta-ui.spec.js
parent797a3ee686bd3ed87ea0669a1a21da45f02d7e81 (diff)
downloadtangerine-wallet-browser-bf32aeaef26907369ae52ac2e9fcde7336d6760d.tar
tangerine-wallet-browser-bf32aeaef26907369ae52ac2e9fcde7336d6760d.tar.gz
tangerine-wallet-browser-bf32aeaef26907369ae52ac2e9fcde7336d6760d.tar.bz2
tangerine-wallet-browser-bf32aeaef26907369ae52ac2e9fcde7336d6760d.tar.lz
tangerine-wallet-browser-bf32aeaef26907369ae52ac2e9fcde7336d6760d.tar.xz
tangerine-wallet-browser-bf32aeaef26907369ae52ac2e9fcde7336d6760d.tar.zst
tangerine-wallet-browser-bf32aeaef26907369ae52ac2e9fcde7336d6760d.zip
Adds test for hiding tokens.
Diffstat (limited to 'test/e2e/beta/metamask-beta-ui.spec.js')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 5b257ff65..2b52e1e7c 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -798,6 +798,25 @@ describe('MetaMask', function () {
})
})
+ describe('Hide token', () => {
+ it('hides the token when clicked', async () => {
+ const [hideTokenEllipsis] = await findElements(driver, By.css('.token-list-item__ellipsis'))
+ hideTokenEllipsis.click()
+
+ const byTokenMenuDropdownOption = By.css('.token-menu-dropdown__option')
+ const tokenMenuDropdownOption = await driver.wait(until.elementLocated(byTokenMenuDropdownOption))
+ tokenMenuDropdownOption.click()
+
+ const confirmHideModal = await findElement(driver, By.css('span .modal'))
+
+ const byHideTokenConfirmationButton = By.css('.hide-token-confirmation__button')
+ const hideTokenConfirmationButton = await driver.wait(until.elementLocated(byHideTokenConfirmationButton))
+ hideTokenConfirmationButton.click()
+
+ await driver.wait(until.stalenessOf(confirmHideModal))
+ })
+ })
+
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')]`))