import "@testing-library/jest-dom";
import * as React from "react";
import { describe, it } from "vitest";
import { Alert, AlertDescription, AlertTitle } from "./alert";
import { expectNoAxeViolations } from "@toolctrl/ui-app/test-setup/axe";
describe("Alert axe-core a11y", () => {
it("info alert has no axe violations", async () => {
await expectNoAxeViolations(
Heads up
Your subscription renews tomorrow.
,
);
});
it("destructive alert with role=alert has no axe violations", async () => {
await expectNoAxeViolations(
Error
Could not save changes.
,
);
});
});