diff options
author | Struan Donald <struan@exo.org.uk> | 2020-09-21 07:09:35 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2020-09-21 07:09:35 +0100 |
commit | 9152db674f3367e81eac8194c2b25aea91e4db61 (patch) | |
tree | 0abaaec3ded4d308404bf313d0046773c9aac672 | |
parent | 92dbe2100f813dbad20f15fa42d597495b7f7e40 (diff) |
[Northamptonshire] fix failing browser tests
cope with change to staging assets URL
-rw-r--r-- | .cypress/cypress/integration/northamptonshire.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.cypress/cypress/integration/northamptonshire.js b/.cypress/cypress/integration/northamptonshire.js index aac6cb66b..0de02d8c3 100644 --- a/.cypress/cypress/integration/northamptonshire.js +++ b/.cypress/cypress/integration/northamptonshire.js @@ -7,7 +7,7 @@ it('prevents clicking unless asset selected', function() { cy.server(); cy.fixture('bus_stops.json'); cy.fixture('bus_stops_none.json'); - cy.route('**/northants.assets/**', 'fixture:bus_stops_none.json').as('empty-bus_stops-layer'); + cy.route('**/northants.staging/**', 'fixture:bus_stops_none.json').as('empty-bus_stops-layer'); cy.route('**/32602/21575/**', 'fixture:bus_stops.json').as('bus_stops-layer'); cy.route('/report/new/ajax*').as('report-ajax'); cy.visit('http://northamptonshire.localhost:3001/'); @@ -29,7 +29,7 @@ it('selecting an asset allows a report', function() { cy.server(); cy.fixture('bus_stops.json'); cy.fixture('bus_stops_none.json'); - cy.route('**/northants.assets/**', 'fixture:bus_stops_none.json').as('empty-bus_stops-layer'); + cy.route('**/northants.staging/**', 'fixture:bus_stops_none.json').as('empty-bus_stops-layer'); cy.route('**/32602/21575/**', 'fixture:bus_stops.json').as('bus_stops-layer'); cy.route('/report/new/ajax*').as('report-ajax'); cy.visit('http://northamptonshire.localhost:3001/'); @@ -51,7 +51,7 @@ it('detects multiple assets at same location', function() { cy.server(); cy.fixture('bus_stops.json'); cy.fixture('bus_stops_none.json'); - cy.route('**/northants.assets/**', 'fixture:bus_stops_none.json').as('empty-bus_stops-layer'); + cy.route('**/northants.staging/**', 'fixture:bus_stops_none.json').as('empty-bus_stops-layer'); cy.route('**/32602/21575/**', 'fixture:bus_stops.json').as('bus_stops-layer'); cy.route('**/32602/21576/**', 'fixture:bus_stops.json').as('bus_stops-layer2'); cy.route('/report/new/ajax*').as('report-ajax'); |