diff --git a/tests/end2end/cypress/integration/external_wms_layer-ghaction.js b/tests/end2end/cypress/integration/external_wms_layer-ghaction.js index 318fc7d9a8..876a65ed71 100644 --- a/tests/end2end/cypress/integration/external_wms_layer-ghaction.js +++ b/tests/end2end/cypress/integration/external_wms_layer-ghaction.js @@ -14,8 +14,6 @@ describe('External WMS layers', function () { // Increasing the timeout because the external server seems too slow to respond on time defaultCommandTimeout: 10000 - cy.gotoMap('/index.php/view/map/?repository=testsrepository&project=external_wms_layer') - cy.intercept('*REQUEST=GetMap*', { middleware: true }, (req) => { @@ -26,6 +24,10 @@ describe('External WMS layers', function () { }) }).as('getMap') + cy.gotoMap('/index.php/view/map/?repository=testsrepository&project=external_wms_layer') + // Wait for OpenStreetMap layer + cy.wait(1000) + // WMS https://liz.lizmap.com/tests/index.php/lizmap/service?repository=testse2elwc&project=base_external_layers&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities // URL liz.lizmap.com // Repository testse2elwc @@ -40,9 +42,6 @@ describe('External WMS layers', function () { }) cy.get('#node-png').click() - // Wait for all GetMap requests - cy.wait(4000) - // As JPEG for a remote WMS cy.get('#node-jpeg').click() cy.wait('@getMap').then((interception) => {