Fix unit tests

This commit is contained in:
adilallo
2025-08-28 22:26:21 -06:00
parent 382f4a7541
commit c1122c8426
5 changed files with 75 additions and 43 deletions
+9 -3
View File
@@ -148,10 +148,16 @@ describe("RuleStack Component", () => {
test("applies different background colors to cards", () => {
render(<RuleStack />);
const cards = document.querySelectorAll(
'[class*="bg-[var(--color-surface-default-brand-"]'
);
// Look for RuleCard elements with background color classes
const cards = document.querySelectorAll('[role="button"]');
expect(cards.length).toBeGreaterThan(0);
// Verify that cards have background color classes
cards.forEach((card) => {
expect(card.className).toMatch(
/bg-\[var\(--color-surface-default-brand-/
);
});
});
test("renders with proper button styling", () => {