Skip to content

Commit

Permalink
fix tailwindcss tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz committed Jun 3, 2024
1 parent 8653e66 commit 4199efd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cypress/e2e/build-test.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ describe("build test", () => {

cy.contains("Sign in to your account").should("exist");

if (Cypress.env("UI_FRAMEWORK") === "no") {
if (
Cypress.env("UI_FRAMEWORK") === "no" ||
Cypress.env("UI_FRAMEWORK") === "tailwindcss"
) {
if (Cypress.env("DATA_PROVIDER") === "supabase") {
cy.get("input[name='email']").type("[email protected]");
cy.get("input[name='password']").type("refine-supabase");
Expand Down Expand Up @@ -125,7 +128,10 @@ describe("build test", () => {
cy.title().should("eq", "Blog posts | refine");
}

if (Cypress.env("UI_FRAMEWORK") !== "no") {
if (
Cypress.env("UI_FRAMEWORK") !== "no" &&
Cypress.env("UI_FRAMEWORK") !== "tailwindcss"
) {
cy.contains("Categories").should("exist");

cy.contains("Logout").should("exist");
Expand Down

0 comments on commit 4199efd

Please sign in to comment.