2020-06-05 20:20:47 +03:00
|
|
|
import { TEST_ADDRESS_NEVER_USE_SHORTENED } from '../support/commands'
|
2020-05-13 15:29:54 +03:00
|
|
|
|
2020-05-11 16:03:44 +03:00
|
|
|
describe('Landing Page', () => {
|
|
|
|
beforeEach(() => cy.visit('/'))
|
2020-05-17 00:55:22 +03:00
|
|
|
it('loads swap page', () => {
|
|
|
|
cy.get('#swap-page')
|
2020-05-11 16:03:44 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
it('redirects to url /swap', () => {
|
|
|
|
cy.url().should('include', '/swap')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('allows navigation to pool', () => {
|
2020-05-14 22:56:40 +03:00
|
|
|
cy.get('#pool-nav-link').click()
|
2020-05-11 16:03:44 +03:00
|
|
|
cy.url().should('include', '/pool')
|
|
|
|
})
|
2020-05-13 15:29:54 +03:00
|
|
|
|
|
|
|
it('is connected', () => {
|
|
|
|
cy.get('#web3-status-connected').click()
|
2020-06-05 20:20:47 +03:00
|
|
|
cy.get('#web3-account-identifier-row').contains(TEST_ADDRESS_NEVER_USE_SHORTENED)
|
2020-05-13 15:29:54 +03:00
|
|
|
})
|
2020-05-11 16:03:44 +03:00
|
|
|
})
|