24 lines
626 B
TypeScript
24 lines
626 B
TypeScript
import React from "react";
|
|
import SectionHeader from "../../app/components/type/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,
|
|
},
|
|
});
|