From a04df4b3ab99ceac3f050329c5f1628beac26442 Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Thu, 20 Oct 2022 13:47:22 -0400 Subject: [PATCH] fix test --- cypress/e2e/02-update/updateUser.cy.js | 2 +- cypress/e2e/02-update/updateUser.cy.ts | 2 +- cypress/e2e/03-readOnly/readOnlyUser.cy.js | 2 +- cypress/e2e/03-readOnly/readOnlyUser.cy.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/02-update/updateUser.cy.js b/cypress/e2e/02-update/updateUser.cy.js index 6fcda5f5..0e7fd264 100644 --- a/cypress/e2e/02-update/updateUser.cy.js +++ b/cypress/e2e/02-update/updateUser.cy.js @@ -21,6 +21,6 @@ describe("Update User", () => { it("Redirects to Dashboard when attempting to access admin area", () => { cy.visit("/admin/cleanup"); cy.wait(200); - cy.location("pathname").should("equal", "/dashboard"); + cy.location("pathname").should("equal", "/dashboard/"); }); }); diff --git a/cypress/e2e/02-update/updateUser.cy.ts b/cypress/e2e/02-update/updateUser.cy.ts index c0efbd58..bd843f96 100644 --- a/cypress/e2e/02-update/updateUser.cy.ts +++ b/cypress/e2e/02-update/updateUser.cy.ts @@ -29,6 +29,6 @@ describe("Update User", () => { it("Redirects to Dashboard when attempting to access admin area", () => { cy.visit("/admin/cleanup"); cy.wait(200); - cy.location("pathname").should("equal", "/dashboard"); + cy.location("pathname").should("equal", "/dashboard/"); }); }); diff --git a/cypress/e2e/03-readOnly/readOnlyUser.cy.js b/cypress/e2e/03-readOnly/readOnlyUser.cy.js index e530b4e7..b1d94215 100644 --- a/cypress/e2e/03-readOnly/readOnlyUser.cy.js +++ b/cypress/e2e/03-readOnly/readOnlyUser.cy.js @@ -40,7 +40,7 @@ describe("Read Only User", () => { it("Redirects to Dashboard when attempting to create a work order", () => { cy.visit("/workOrders/new"); cy.wait(200); - cy.location("pathname").should("equal", "/dashboard"); + cy.location("pathname").should("equal", "/dashboard/"); }); it("Redirects to Dashboard when attempting to alter fees", () => { cy.visit("/admin/fees"); diff --git a/cypress/e2e/03-readOnly/readOnlyUser.cy.ts b/cypress/e2e/03-readOnly/readOnlyUser.cy.ts index 5ed11797..265729b0 100644 --- a/cypress/e2e/03-readOnly/readOnlyUser.cy.ts +++ b/cypress/e2e/03-readOnly/readOnlyUser.cy.ts @@ -53,7 +53,7 @@ describe("Read Only User", () => { it("Redirects to Dashboard when attempting to create a work order", () => { cy.visit("/workOrders/new"); cy.wait(200); - cy.location("pathname").should("equal", "/dashboard"); + cy.location("pathname").should("equal", "/dashboard/"); }); it("Redirects to Dashboard when attempting to alter fees", () => {