Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Oct 10, 2024
1 parent 0ba1ca3 commit 370f0c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/cypress/e2e/settings/mapSettings.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ describe("map settings", () => {

// Reload page to verify layers are correctly added
cy.reload(true);
goToRouteAndAcceptTerms("/");

// Remove layers
cy.get('[data-cy="settings-button"]').click();
cy.contains("Map").click();
cy.wait(1000);
cy.get('[data-cy="maps-for-user-box"]').contains(wmtsName);
cy.get('[data-cy="maps-for-user-box"]').contains(wmsName);
cy.get('[data-cy="delete-user-map-button"]').eq(0).click();
Expand All @@ -47,6 +49,7 @@ describe("map settings", () => {
cy.wait("@setting"); //¯\_(ツ)_/¯

cy.get('[data-cy="maps-for-user-box"]').should("not.contain", wmsName);
cy.wait(1000);

cy.get('[data-cy="delete-user-map-button"]').eq(0).click();
cy.get('[data-cy="maps-for-user-box"]').should("not.exist");
Expand Down

0 comments on commit 370f0c1

Please sign in to comment.