diff options
Diffstat (limited to '.cypress/cypress/integration/simple_spec.js')
-rw-r--r-- | .cypress/cypress/integration/simple_spec.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.cypress/cypress/integration/simple_spec.js b/.cypress/cypress/integration/simple_spec.js index 39000a022..fe0867c76 100644 --- a/.cypress/cypress/integration/simple_spec.js +++ b/.cypress/cypress/integration/simple_spec.js @@ -14,3 +14,17 @@ describe('My First Test', function() { cy.get('form').submit(); }); }); + +describe('Clicking the "big green banner" on a map page', function() { + before(function() { + cy.visit('/'); + cy.get('[name=pc]').type('BS10 5EE'); + cy.get('#postcodeForm').submit(); + cy.get('.big-green-banner').click(); + }); + + it('begins a new report', function() { + cy.url().should('include', '/report/new'); + cy.get('#form_title').should('be.visible'); + }); +}); |