diff options
author | Marius Halden <marius.h@lden.org> | 2021-10-07 13:32:40 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2021-10-07 13:32:40 +0200 |
commit | 09dacfc6b8bf62addeee16c20b1d90c2a256da96 (patch) | |
tree | 7caa2bf9e92227ab74448f9b746dd28bbcb81b2a /.cypress/cypress/integration/simple_spec.js | |
parent | 585e57484f9c6332668bf1ac0a6a3b39dbe32223 (diff) | |
parent | cea89fb87a96943708a1db0f646492fbfaaf000f (diff) |
Merge tag 'v3.1' into fiksgatami-devfiksgatami-dev
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'); |