48f8c6a141
* test: update cypress * chore: comment on infura origin * test: split build and serve * chore: rm setupNodeEvents
24 lines
600 B
TypeScript
24 lines
600 B
TypeScript
import { TEST_ADDRESS_NEVER_USE_SHORTENED } from '../support/ethereum'
|
|
|
|
describe('Landing Page', () => {
|
|
beforeEach(() => cy.visit('/'))
|
|
it('loads swap page', () => {
|
|
cy.get('#swap-page')
|
|
cy.screenshot()
|
|
})
|
|
|
|
it('redirects to url /swap', () => {
|
|
cy.url().should('include', '/swap')
|
|
})
|
|
|
|
it('allows navigation to pool', () => {
|
|
cy.get('#pool-nav-link').click()
|
|
cy.url().should('include', '/pool')
|
|
})
|
|
|
|
it('is connected', () => {
|
|
cy.get('#web3-status-connected').click()
|
|
cy.get('#web3-account-identifier-row').contains(TEST_ADDRESS_NEVER_USE_SHORTENED)
|
|
})
|
|
})
|