25 lines
769 B
TypeScript
25 lines
769 B
TypeScript
import "@testing-library/jest-dom";
|
|
import * as React from "react";
|
|
import { describe, it } from "vitest";
|
|
|
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "./card";
|
|
import { expectNoAxeViolations } from "@toolctrl/ui-app/test-setup/axe";
|
|
|
|
describe("Card axe-core a11y", () => {
|
|
it("Card with header + content has no axe violations", async () => {
|
|
await expectNoAxeViolations(
|
|
<main>
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Plan summary</CardTitle>
|
|
<CardDescription>Includes seats, billing cycle and renewal date.</CardDescription>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<p>Pro plan, billed monthly.</p>
|
|
</CardContent>
|
|
</Card>
|
|
</main>,
|
|
);
|
|
});
|
|
});
|