Skip to content

Commit 4bebb0a

Browse files
fix: test
1 parent f42e8e9 commit 4bebb0a

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

cypress/e2e/build-test.cy.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,14 @@ describe("build test", () => {
8787
failOnStatusCode: false,
8888
}).wait(1000);
8989

90-
cy.url().should("be.oneOf", [
91-
"http://localhost:3000/login?to=%2Fi-dont-exist",
92-
"http://localhost:3000/login?to=/i-dont-exist",
93-
]);
90+
cy.url().should(
91+
"be.oneOf",
92+
[
93+
"http://localhost:3000/login?to=%2Fi-dont-exist",
94+
"http://localhost:3000/login?to=/i-dont-exist",
95+
],
96+
{ timeout: 10000 },
97+
);
9498

9599
if (Cypress.env("UI_FRAMEWORK") === "shadcn") {
96100
cy.contains("Sign in").should("exist");
@@ -115,9 +119,14 @@ describe("build test", () => {
115119

116120
cy.wait(1000);
117121

118-
cy.url().should("eq", "http://localhost:3000/i-dont-exist", {
119-
timeout: 3000,
120-
});
122+
cy.url().should(
123+
"be.oneOf",
124+
[
125+
"http://localhost:3000/login?to=%2Fi-dont-exist",
126+
"http://localhost:3000/login?to=/i-dont-exist",
127+
],
128+
{ timeout: 10000 },
129+
);
121130

122131
if (Cypress.env("UI_FRAMEWORK") === "shadcn") {
123132
cy.contains("Page not found.").should("exist");

0 commit comments

Comments
 (0)