Files
nodeMap/cypress/e2e/poiUpdateModal.cy.js
Ismail Ali 064423d4eb test: Cypress E2E-Test für POI-Typ Dropdown im Bearbeiten-Modal hinzugefügt
- Aktiviert Bearbeitungsmodus über SVG-Icon
- Öffnet Marker-Kontextmenü via rightclick
- Öffnet Modal und prüft vorausgewählten POI-Typ
- Erkennt visuell, wenn Dropdown-Zuweisung fehlschlägt
2025-05-25 20:21:38 +02:00

21 lines
936 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//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");
});
});