//cypress/e2e/poiUpdateModal.cy.js describe("POI bearbeiten – Typ-Auswahl prüfen", () => { beforeEach(() => { cy.visit("http://localhost:3000/?m=12&u=484"); cy.get(".leaflet-container", { timeout: 10000 }).should("be.visible"); cy.get(".leaflet-marker-icon", { timeout: 10000 }).should("have.length.greaterThan", 0); }); it("sollte beim Öffnen des Modals den richtigen POI-Typ anzeigen", () => { cy.get('svg[aria-label="Bearbeitungsmodus aktivieren"]').click({ force: true }); cy.wait(5000); cy.get('img[src="/img/icons/pois/poi-marker-icon-4.png"]', { timeout: 10000 }).should("be.visible"); cy.get('img[src="/img/icons/pois/poi-marker-icon-4.png"]').first().rightclick({ force: true }); cy.contains("POI Bearbeiten").click({ force: true }); cy.get("#idPoiTyp", { timeout: 10000 }).should("exist").find("[class*='singleValue']").should("not.contain.text", "Typ auswählen"); }); });