From ef376187e547aed58354cfeb90e1514e4a5c6421 Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Fri, 20 Dec 2024 14:12:30 +0100 Subject: [PATCH] Fix test --- src/client/cypress/e2e/detailPage/boreholeform.cy.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/client/cypress/e2e/detailPage/boreholeform.cy.js b/src/client/cypress/e2e/detailPage/boreholeform.cy.js index 65ba3af27..1fb67a12f 100644 --- a/src/client/cypress/e2e/detailPage/boreholeform.cy.js +++ b/src/client/cypress/e2e/detailPage/boreholeform.cy.js @@ -82,7 +82,7 @@ describe("Test for the borehole form.", () => { evaluateSelect("statusId", "22104001"); }); - it("Fills all inputs on borehole tab and saves", () => { + it.only("Fills all inputs on borehole tab and saves", () => { createBorehole({ "extended.original_name": "AAA_Ferret", "custom.alternate_name": "AAA_Ferret" }).as("borehole_id"); cy.get("@borehole_id").then(id => { goToRouteAndAcceptTerms(`/${id}/borehole`); @@ -111,10 +111,11 @@ describe("Test for the borehole form.", () => { saveWithSaveBar(); getElementByDataCy("location-menu-item").click(); cy.contains("Boreholes.swissgeol.ch ID"); - - getElementByDataCy("borehole-menu-item"); - evaluateSelect("lithostratigraphyTopBedrockId", "Bodensee-Nagelfluh"); - evaluateSelect("chronostratigraphyTopBedrockId", "Phanerozoic"); + getElementByDataCy("borehole-menu-item").click(); + evaluateSelect("lithostratigraphyTopBedrockId", "15300583"); + evaluateSelect("chronostratigraphyTopBedrockId", "15001001"); + cy.contains("Bodensee-Nagelfluh").should("exist"); + cy.contains("Phanerozoic").should("exist"); }); });