From 7a70af6c8b41125374bb11dbc653eb27cede8322 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sat, 18 Nov 2023 21:17:06 +0100 Subject: [PATCH] made the e2e script more robust --- webclient/cypress/e2e/frontpage.cy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webclient/cypress/e2e/frontpage.cy.ts b/webclient/cypress/e2e/frontpage.cy.ts index c18c784d4..e2cdfcdfa 100644 --- a/webclient/cypress/e2e/frontpage.cy.ts +++ b/webclient/cypress/e2e/frontpage.cy.ts @@ -1,10 +1,10 @@ describe("Check if navigating from the frontpage works as expected", () => { - it("navigating to the mi", () => { + it("navigating to the mri", () => { cy.intercept("GET", "/api/get/root?lang=de", { fixture: "get/root.de.json" }); cy.visit("http://localhost:3000/"); cy.intercept("GET", "/api/get/mi?lang=de", { fixture: "get/mi.de.json" }); - cy.contains("Informatik").click(); - cy.url().should("include", "/building/mi"); + cy.contains("MRI").click(); + cy.url().should("include", "/site/mri"); }); it("navigating to an initally hidden entry", () => { cy.intercept("GET", "/api/get/root?lang=de", { fixture: "get/root.de.json" });