diff options
Diffstat (limited to '.cypress/cypress/integration/simple_spec.js')
-rw-r--r-- | .cypress/cypress/integration/simple_spec.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.cypress/cypress/integration/simple_spec.js b/.cypress/cypress/integration/simple_spec.js new file mode 100644 index 000000000..39000a022 --- /dev/null +++ b/.cypress/cypress/integration/simple_spec.js @@ -0,0 +1,16 @@ +describe('My First Test', function() { + it('Visits the home page', function() { + cy.visit('/'); + cy.contains('Go'); + cy.get('[name=pc]').type('BS10 5EE'); + cy.get('#postcodeForm').submit(); + cy.url().should('include', '/around'); + cy.get('#map_box').click(200, 200); + cy.get('[name=title]').type('Title'); + cy.get('[name=detail]').type('Detail'); + cy.get('[name=username]').type('user@example.org'); + cy.get('[name=password_sign_in]').type('password'); + cy.get('form').submit(); + cy.get('form').submit(); + }); +}); |