9cb89162ab
CI Pipeline / test (pull_request) Successful in 7m5s
CI Pipeline / lint (pull_request) Has been cancelled
CI Pipeline / build (pull_request) Has been cancelled
CI Pipeline / e2e (webkit) (pull_request) Has been cancelled
CI Pipeline / e2e (chromium) (pull_request) Successful in 54m11s
CI Pipeline / e2e (firefox) (pull_request) Failing after 22m9s
CI Pipeline / visual-regression (pull_request) Successful in 11m50s
CI Pipeline / performance (pull_request) Successful in 13m59s
22 lines
556 B
TypeScript
22 lines
556 B
TypeScript
import React from "react";
|
|
import Header from "../../app/components/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,
|
|
},
|
|
});
|