0e148bb1b3
* use data-testid * findByTestId test -> it add types temp rm exclude get -> find * Revert "findByTestId" This reverts commit 1e1c483ef90596b41f649443be1b191414ab3876. * rm some test ids * fix
31 lines
937 B
TypeScript
31 lines
937 B
TypeScript
import { TEST_ADDRESS_NEVER_USE_SHORTENED } from '../support/ethereum'
|
|
|
|
describe('Wallet', () => {
|
|
before(() => {
|
|
cy.visit('/')
|
|
})
|
|
|
|
it('displays account details', () => {
|
|
cy.get('[data-testid=web3-status-connected]').contains(TEST_ADDRESS_NEVER_USE_SHORTENED).click()
|
|
})
|
|
|
|
it('displays account view in wallet modal', () => {
|
|
cy.get('[data-testid=web3-account-identifier-row]').contains(TEST_ADDRESS_NEVER_USE_SHORTENED)
|
|
})
|
|
|
|
it('changes back to the options grid', () => {
|
|
cy.contains('Change').click()
|
|
cy.get('[data-testid=option-grid]').should('exist')
|
|
})
|
|
|
|
it('selects injected wallet option', () => {
|
|
cy.contains('Injected').click()
|
|
cy.get('[data-testid=web3-account-identifier-row]').contains(TEST_ADDRESS_NEVER_USE_SHORTENED)
|
|
})
|
|
|
|
it('shows connect buttons after disconnect', () => {
|
|
cy.contains('Disconnect').click()
|
|
cy.get('[data-testid=option-grid]').should('exist')
|
|
})
|
|
})
|