updated tests

This commit is contained in:
Owen Rees
2023-06-22 13:39:50 +02:00
parent 6f7b840b54
commit ef08aa3a61
28 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ describe("Test links", () => {
cy.viewport(600, 600);
cy.visit("/");
pages.forEach((page) => {
cy.get("[data-cy='hamburger-button']").click();
cy.getByData("hamburger-button").click();
cy.contains(page, { matchCase: false }).click();
cy.location("pathname").should("eq", `/${navLinkToSlug(page)}`); // url path matches link name, replacing whitespace with hyphens
cy.go("back");