Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test e2e Cypress: Enhancing external WMS layer #4544

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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
Expand All @@ -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) => {
Expand Down
Loading