Skip to content

Commit 9efd767

Browse files
fix: test
1 parent fc914eb commit 9efd767

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

cypress/e2e/build-test.cy.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,17 @@ describe("build test", () => {
159159
) {
160160
cy.contains("Categories").should("exist");
161161

162-
cy.contains("Logout").should("exist");
162+
if (Cypress.env("UI_FRAMEWORK") === "shadcn") {
163+
// For shadcn, logout is in a dropdown menu
164+
// First click the avatar button to open dropdown
165+
cy.get('button:has([data-slot="avatar"])').click();
166+
167+
// Then verify the logout option is visible in the dropdown
168+
cy.contains("Logout").should("exist");
169+
} else {
170+
// For other UI frameworks, logout is directly visible
171+
cy.contains("Logout").should("exist");
172+
}
163173
}
164174
}
165175
});

0 commit comments

Comments
 (0)