Commit 89a7d98b authored by Nate Wienert's avatar Nate Wienert Committed by GitHub

ci: fix wallet disconnect test regression (#6723)

parent 0076fdc6
import { getTestSelector } from '../../utils'
describe.skip('disconnect wallet', () => {
describe('disconnect wallet', () => {
it('should clear state', () => {
cy.visit('/swap', { ethereum: 'hardhat' })
cy.get('#swap-currency-input .token-amount-input').clear().type('1')
......@@ -12,6 +12,8 @@ describe.skip('disconnect wallet', () => {
// Disconnect the wallet
cy.hardhat().then((hardhat) => cy.contains(hardhat.wallet.address.substring(0, 6)).click())
cy.get(getTestSelector('wallet-disconnect')).click()
cy.get(getTestSelector('wallet-disconnect')).contains('Disconnect')
cy.get(getTestSelector('wallet-disconnect')).click()
// Verify wallet has disconnected
cy.contains('Connect a wallet').should('exist')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment