diff options
Diffstat (limited to '.cypress/cypress/integration/simple_spec.js')
-rw-r--r-- | .cypress/cypress/integration/simple_spec.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.cypress/cypress/integration/simple_spec.js b/.cypress/cypress/integration/simple_spec.js index 8b658b21b..074bf72bd 100644 --- a/.cypress/cypress/integration/simple_spec.js +++ b/.cypress/cypress/integration/simple_spec.js @@ -20,6 +20,9 @@ describe('Clicking the map', function() { cy.get('#map_sidebar').should('contain', 'check and confirm your details'); cy.get('#map_sidebar').parents('form').submit(); cy.get('body').should('contain', 'Thank you for reporting this issue'); + cy.visit('http://fixmystreet.localhost:3001/_test/setup/simple-service-check').then(function(w) { + expect(w.document.documentElement.innerText).to.equal('desktop'); + }); }); }); @@ -47,7 +50,7 @@ describe('Leaving updates', function() { cy.route('/report/*').as('show-report'); cy.route('/reports/*').as('show-all'); cy.route('/mapit/area/*').as('get-geometry'); - cy.visit('/around?lon=-2.295894&lat=51.526877&zoom=6'); + cy.visit('/around?lon=-2.295894&lat=51.526877&zoom=0'); // force to hopefully work around apparent Cypress SVG issue cy.get('image[title="Lights out in tunnel"]:last').click({force: true}); cy.wait('@show-report'); |