mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
Some checks are pending
* fix(work-orders): align sidebar and advanced filters with AAP * test(vendors): scope Site locator exactly * fix(work-orders): keep sidebar scope unchanged * test(work-orders): refresh SH-220 filter baseline --------- Co-authored-by: Codex Review Integration <codex-review@local.invalid>
16 lines
643 B
TypeScript
16 lines
643 B
TypeScript
import { screen } from "@testing-library/react";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
import { CollapsibleSection } from "@/components/ui/collapsible-section";
|
|
import { renderWithProviders } from "@/test/test-utils";
|
|
|
|
describe("CollapsibleSection", () => {
|
|
it("renders the section title at the 14px body size token", () => {
|
|
renderWithProviders(<CollapsibleSection label="Aveta Compliance">child</CollapsibleSection>, {
|
|
withAuth: false,
|
|
});
|
|
|
|
const title = screen.getByRole("button", { name: /Aveta Compliance/i }).querySelector("span");
|
|
expect(title).toHaveClass("text-[length:var(--text-base)]");
|
|
});
|
|
});
|