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:
11
CHANGELOG.md
11
CHANGELOG.md
@@ -4,6 +4,17 @@ Alle bedeutenden Änderungen an diesem Projekt werden in dieser Datei dokumentie
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### ✅ Test
|
||||||
|
|
||||||
|
- Cypress E2E-Test für POI-Bearbeitung eingeführt:
|
||||||
|
- Klickt auf Marker mit Icon 4
|
||||||
|
- Aktiviert Bearbeitungsmodus
|
||||||
|
- Öffnet das Modal „POI bearbeiten“
|
||||||
|
- Prüft, dass der Dropdown „Typ“ einen vorausgewählten Wert enthält
|
||||||
|
- Erkennt Regressionen bei Typ-Zuweisung im Bearbeitungsdialog zuverlässig
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## [1.1.164] – 2025-05-23
|
## [1.1.164] – 2025-05-23
|
||||||
|
|
||||||
### 🐞 Fixed
|
### 🐞 Fixed
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
// /config/appVersion
|
// /config/appVersion
|
||||||
export const APP_VERSION = "1.1.165";
|
export const APP_VERSION = "1.1.166";
|
||||||
|
|||||||
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