Skip to content

Commit fa5f765

Browse files
committed
fix(test): update navbar e2e test to match root path environment
Adjust expectation in navbar.cy.ts to assert root path (/) instead of /test-abb/, aligning with the new CI testing configuration while preserving correct routing behavior for production deployment.
1 parent ac6d3fd commit fa5f765

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cypress/e2e/navbar.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ describe("testing navbar functions", () => {
1010

1111
it("clicking on products works properly", () => {
1212
cy.get('[data-test="main-logo"]').click({ force: true });
13-
// Verify it goes back to root (which is /test-abb/)
14-
cy.location("pathname").should("match", /\/test-abb\/?$/);
13+
// Verify it goes back to root
14+
cy.location("pathname").should("match", /^\/$/);
1515
});
1616

1717
it.skip("clicking on a product works properly", () => {

0 commit comments

Comments
 (0)