Simplify and standardize testing structure

This commit is contained in:
adilallo
2026-01-28 14:04:04 -07:00
parent e7a31789e3
commit 7ea724a8d9
95 changed files with 1534 additions and 15485 deletions
+23
View File
@@ -0,0 +1,23 @@
import React from "react";
import ToggleGroup from "../../app/components/ToggleGroup";
import { componentTestSuite } from "../utils/componentTestSuite";
type ToggleGroupProps = React.ComponentProps<typeof ToggleGroup>;
componentTestSuite<ToggleGroupProps>({
component: ToggleGroup,
name: "ToggleGroup",
props: {
children: "Option",
} as ToggleGroupProps,
requiredProps: [],
primaryRole: "button",
testCases: {
renders: true,
accessibility: true,
keyboardNavigation: true,
disabledState: false,
errorState: false,
},
});