aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress/cypress/integration/regressions.js
diff options
context:
space:
mode:
Diffstat (limited to '.cypress/cypress/integration/regressions.js')
-rw-r--r--.cypress/cypress/integration/regressions.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/.cypress/cypress/integration/regressions.js b/.cypress/cypress/integration/regressions.js
index c54bc8e9f..00e92f5ad 100644
--- a/.cypress/cypress/integration/regressions.js
+++ b/.cypress/cypress/integration/regressions.js
@@ -8,19 +8,19 @@ Cypress.Commands.add('cleanUpXHR', function() {
describe('Regression tests', function() {
it('Shows the sub-map links after clicking Try again', function() {
cy.viewport(480, 800);
- cy.visit('/around?pc=BS10+5EE&js=1');
+ cy.visit('/around?pc=' + Cypress.env('postcode') + '&js=1');
cy.get('#map_box').click(200, 200);
cy.get('#try_again').click();
cy.get('#sub_map_links').should('be.visible');
cy.cleanUpXHR();
});
it('Does not fade on new pin hover', function() {
- cy.visit('/around?pc=BS10+5EE&js=1');
+ cy.visit('/around?pc=' + Cypress.env('postcode') + '&js=1');
cy.get('#map_box').click(200, 200);
cy.get('#map_box image').last().trigger('mousemove').should('have.css', 'opacity', '1');
});
it('Does not hide the new report pin even if you click really quick', function() {
- cy.visit('/around?pc=BS10+5EE&js=1');
+ cy.visit('/around?pc=' + Cypress.env('postcode') + '&js=1');
cy.get('#map_box').click(200, 200);
cy.get('#loading-indicator').should('be.hidden');
cy.get('#map_box image').should('be.visible');