diff options
Diffstat (limited to '.cypress/cypress/integration/isleofwight.js')
-rw-r--r-- | .cypress/cypress/integration/isleofwight.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.cypress/cypress/integration/isleofwight.js b/.cypress/cypress/integration/isleofwight.js new file mode 100644 index 000000000..430bd0aa8 --- /dev/null +++ b/.cypress/cypress/integration/isleofwight.js @@ -0,0 +1,19 @@ +describe('When you look at the Island Roads site', function() { + + beforeEach(function() { + cy.server(); + cy.fixture('roads.xml'); + cy.route('/report/new/ajax*').as('report-ajax'); + cy.visit('http://isleofwight.localhost:3001/'); + cy.contains('Island Roads'); + cy.get('[name=pc]').type('PO30 5XJ'); + cy.get('[name=pc]').parents('form').submit(); + }); + + it('uses the correct name', function() { + cy.get('#map_box').click(); + cy.wait('@report-ajax'); + cy.get('select:eq(4)').select('Potholes'); + cy.contains('sent to Island Roads'); + }); +}); |