2020-05-13 15:29:54 +03:00
|
|
|
import { TEST_ADDRESS_NEVER_USE } from '../support/commands'
|
|
|
|
|
2020-05-11 16:03:44 +03:00
|
|
|
describe('Landing Page', () => {
|
|
|
|
beforeEach(() => cy.visit('/'))
|
|
|
|
it('loads exchange page', () => {
|
|
|
|
cy.get('#exchangePage')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('redirects to url /swap', () => {
|
|
|
|
cy.url().should('include', '/swap')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('allows navigation to send', () => {
|
|
|
|
cy.get('#send-navLink').click()
|
|
|
|
cy.url().should('include', '/send')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('allows navigation to pool', () => {
|
|
|
|
cy.get('#pool-navLink').click()
|
|
|
|
cy.url().should('include', '/pool')
|
|
|
|
})
|
2020-05-13 15:29:54 +03:00
|
|
|
|
|
|
|
it('is connected', () => {
|
|
|
|
cy.get('#web3-status-connected').click()
|
|
|
|
cy.get('#web3-account-identifier-row').contains(TEST_ADDRESS_NEVER_USE)
|
|
|
|
})
|
2020-05-11 16:03:44 +03:00
|
|
|
})
|