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
This commit is contained in:
20
cypress/e2e/poiUpdateModal.cy.js
Normal file
20
cypress/e2e/poiUpdateModal.cy.js
Normal file
@@ -0,0 +1,20 @@
|
||||
//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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user