Skip to content

Commit 4cd56a1

Browse files
authored
Merge pull request #4544 from rldhont/fix-e2e-cypress-base-external-layers
Test e2e Cypress: Enhancing external WMS layer
2 parents 5f38e56 + 55b14e3 commit 4cd56a1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/end2end/cypress/integration/external_wms_layer-ghaction.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ describe('External WMS layers', function () {
1414
// Increasing the timeout because the external server seems too slow to respond on time
1515
defaultCommandTimeout: 10000
1616

17-
cy.gotoMap('/index.php/view/map/?repository=testsrepository&project=external_wms_layer')
18-
1917
cy.intercept('*REQUEST=GetMap*',
2018
{ middleware: true },
2119
(req) => {
@@ -26,6 +24,10 @@ describe('External WMS layers', function () {
2624
})
2725
}).as('getMap')
2826

27+
cy.gotoMap('/index.php/view/map/?repository=testsrepository&project=external_wms_layer')
28+
// Wait for OpenStreetMap layer
29+
cy.wait(1000)
30+
2931
// WMS https://liz.lizmap.com/tests/index.php/lizmap/service?repository=testse2elwc&project=base_external_layers&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
3032
// URL liz.lizmap.com
3133
// Repository testse2elwc
@@ -40,9 +42,6 @@ describe('External WMS layers', function () {
4042
})
4143
cy.get('#node-png').click()
4244

43-
// Wait for all GetMap requests
44-
cy.wait(4000)
45-
4645
// As JPEG for a remote WMS
4746
cy.get('#node-jpeg').click()
4847
cy.wait('@getMap').then((interception) => {

0 commit comments

Comments
 (0)