diff --git a/cypress/e2e/permalink.cy.js b/cypress/e2e/permalink.cy.js index 7e4983c61..1bf67432c 100644 --- a/cypress/e2e/permalink.cy.js +++ b/cypress/e2e/permalink.cy.js @@ -64,7 +64,9 @@ describe("permalink", () => { ), ); cy.url().should("match", /lang=de/); - cy.url().should("match", /layers=&/); + cy.url().should("match", /[?&]layers=(&|$)/); + // cy.url().then((url) => console.log(url)); + // eslint-disable-next-line prefer-regex-literals cy.url().should("match", new RegExp("x=928460&y=5908948&z=8.5")); });