Files
community-rule/tests/components/Header.test.tsx
T
2026-02-06 08:06:50 -07:00

22 lines
567 B
TypeScript

import React from "react";
import Header from "../../app/components/navigation/Header";
import { componentTestSuite } from "../utils/componentTestSuite";
type HeaderProps = React.ComponentProps<typeof Header>;
componentTestSuite<HeaderProps>({
component: Header,
name: "Header",
// Header has no props; it reads from routing and config.
props: {} as HeaderProps,
requiredProps: [],
primaryRole: "banner",
testCases: {
renders: true,
accessibility: true,
keyboardNavigation: false,
disabledState: false,
errorState: false,
},
});