aboutsummaryrefslogtreecommitdiffstats
path: root/.cypress/cypress/integration/responsive.js
diff options
context:
space:
mode:
Diffstat (limited to '.cypress/cypress/integration/responsive.js')
-rw-r--r--.cypress/cypress/integration/responsive.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/.cypress/cypress/integration/responsive.js b/.cypress/cypress/integration/responsive.js
index 6d1601cea..1a5540590 100644
--- a/.cypress/cypress/integration/responsive.js
+++ b/.cypress/cypress/integration/responsive.js
@@ -28,7 +28,7 @@ describe('Front page responsive design tests', function() {
describe('Around page responsive design tests', function() {
it('Shows correct things on mobile', function() {
cy.viewport(480, 800);
- cy.visit('/around?pc=BS10+5EE&js=1');
+ cy.visit('/around?pc=' + Cypress.env('postcode') + '&js=1');
cy.get('.mobile-map-banner').should('be.visible');
cy.get('#sub_map_links').should('be.visible');
cy.get('#map_links_toggle').should('not.be.visible');
@@ -41,7 +41,7 @@ describe('Around page responsive design tests', function() {
it('Shows correct things on tablet', function() {
cy.viewport(800, 800);
- cy.visit('/around?pc=BS10+5EE&js=1');
+ cy.visit('/around?pc=' + Cypress.env('postcode') + '&js=1');
cy.get('.mobile-map-banner').should('not.be.visible');
cy.get('#map_sidebar').should('be.visible');
cy.get('#side-form').should('not.be.visible');
@@ -55,7 +55,7 @@ describe('Around page responsive design tests', function() {
it('Shows correct things on desktop', function() {
cy.viewport(1024, 800);
- cy.visit('/around?pc=BS10+5EE&js=1');
+ cy.visit('/around?pc=' + Cypress.env('postcode') + '&js=1');
cy.get('.mobile-map-banner').should('not.be.visible');
cy.get('#map_sidebar').should('be.visible');
cy.get('#sub_map_links').should('be.visible');