Skip to content

Commit

Permalink
made the e2e script more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Nov 18, 2023
1 parent b93367b commit 7a70af6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webclient/cypress/e2e/frontpage.cy.ts
Original file line number Diff line number Diff line change
@@ -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" });
Expand Down

0 comments on commit 7a70af6

Please sign in to comment.