Simplify and standardize testing structure

This commit is contained in:
adilallo committed 2026-01-28 14:04:04 -07:00
1 parent e7a31789e3
commit 7ea724a8d9
95 files changed
+1534 -15485

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import React from "react";
import SectionHeader from "../../app/components/SectionHeader";
import { componentTestSuite } from "../utils/componentTestSuite";
type SectionHeaderProps = React.ComponentProps<typeof SectionHeader>;
componentTestSuite<SectionHeaderProps>({
component: SectionHeader,
name: "SectionHeader",
props: {
title: "Title",
subtitle: "Subtitle",
} as SectionHeaderProps,
requiredProps: ["title", "subtitle"],
primaryRole: "heading",
testCases: {
renders: true,
accessibility: true,
keyboardNavigation: false,
disabledState: false,
errorState: false,
},
});