b1ffab1890
* Bunch of refactoring * Add an integration test that gets as far as swapping * Drop the nonce code that isn't doing anything right now * Undo one of the accidental changes to the reducer
28 lines
693 B
TypeScript
28 lines
693 B
TypeScript
import { TEST_ADDRESS_NEVER_USE } from '../support/commands'
|
|
|
|
describe('Landing Page', () => {
|
|
beforeEach(() => cy.visit('/'))
|
|
it('loads exchange page', () => {
|
|
cy.get('#exchange-page')
|
|
})
|
|
|
|
it('redirects to url /swap', () => {
|
|
cy.url().should('include', '/swap')
|
|
})
|
|
|
|
it('allows navigation to send', () => {
|
|
cy.get('#send-nav-link').click()
|
|
cy.url().should('include', '/send')
|
|
})
|
|
|
|
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)
|
|
})
|
|
})
|