Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Dec 20, 2024
1 parent 1bb6249 commit ef37618
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/client/cypress/e2e/detailPage/boreholeform.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down Expand Up @@ -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");
});
});

Expand Down

0 comments on commit ef37618

Please sign in to comment.