import { describe } from "vitest"; import { componentTestSuite, type ComponentTestSuiteConfig, } from "../utils/componentTestSuite"; import Chip from "../../app/components/controls/Chip"; type Props = React.ComponentProps; const config: ComponentTestSuiteConfig = { component: Chip, name: "Chip", props: { label: "Worker cooperative", state: "unselected", palette: "default", size: "m", } as Props, primaryRole: "button", testCases: { renders: true, accessibility: true, keyboardNavigation: true, disabledState: true, }, states: { disabledProps: { disabled: true, state: "disabled" }, }, }; describe("Chip", () => { componentTestSuite(config); });