mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Adds test for hiding tokens.
This commit is contained in:
parent
797a3ee686
commit
bf32aeaef2
@ -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')]`))
|
||||
|
Loading…
Reference in New Issue
Block a user