28b24036c6
* Add some basic integration tests and CI in GitHub * Add push trigger * Add badge for tests to readme * Unit tests * Just use the development infura URL in the tests * Remove unused webpack config * Make integration test run on the same port as yarn start * make test a little bit better * rename describe
18 lines
406 B
TypeScript
18 lines
406 B
TypeScript
describe('Homepage', () => {
|
|
beforeEach(() => cy.visit('/'))
|
|
it('loads exchange page', () => {
|
|
cy.get('#exchangePage')
|
|
})
|
|
|
|
it('has url /swap', () => {
|
|
cy.url().should('include', '/swap')
|
|
})
|
|
|
|
it('can enter an amount into input', () => {
|
|
cy.get('#swapInputField').type('0.001')
|
|
})
|
|
|
|
it('can enter an amount into output', () => {
|
|
cy.get('#swapOutputField').type('0.001')
|
|
})
|
|
}) |