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
+28
View File
@@ -0,0 +1,28 @@
import React from "react";
import RadioGroup from "../../app/components/RadioGroup";
import { componentTestSuite } from "../utils/componentTestSuite";
type RadioGroupProps = React.ComponentProps<typeof RadioGroup>;
componentTestSuite<RadioGroupProps>({
component: RadioGroup,
name: "RadioGroup",
props: {
name: "example",
value: "a",
options: [
{ value: "a", label: "Option A" },
{ value: "b", label: "Option B" },
],
} as RadioGroupProps,
requiredProps: [],
primaryRole: "radiogroup",
testCases: {
renders: true,
accessibility: true,
keyboardNavigation: false,
disabledState: false,
errorState: false,
},
});