Skip to content

Commit a397c1f

Browse files
fix: test
1 parent 4bebb0a commit a397c1f

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

cypress/e2e/build-test.cy.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ describe("build test", () => {
104104

105105
if (
106106
Cypress.env("UI_FRAMEWORK") === "no" ||
107-
Cypress.env("UI_FRAMEWORK") === "tailwindcss"
107+
Cypress.env("UI_FRAMEWORK") === "tailwindcss" ||
108+
Cypress.env("UI_FRAMEWORK") === "shadcn"
108109
) {
109110
if (Cypress.env("DATA_PROVIDER") === "supabase") {
110111
cy.get("input[name='email']").type("info@refine.dev");
@@ -119,14 +120,9 @@ describe("build test", () => {
119120

120121
cy.wait(1000);
121122

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-
);
123+
cy.url().should("eq", "http://localhost:3000/i-dont-exist", {
124+
timeout: 3000,
125+
});
130126

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

0 commit comments

Comments
 (0)