You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
473 B
TypeScript
15 lines
473 B
TypeScript
// frontend/tests/a11y.test.tsx
|
|
import { render } from "@testing-library/react";
|
|
import { axe } from "vitest-axe";
|
|
import { describe, it, expect, vi } from "vitest";
|
|
import { Topbar } from "@/components/Topbar";
|
|
|
|
vi.mock("next/navigation", () => ({ usePathname: () => "/dashboard" }));
|
|
|
|
describe("a11y", () => {
|
|
it("Topbar에 axe 위반 없음", async () => {
|
|
const { container } = render(<Topbar />);
|
|
expect(await axe(container)).toHaveNoViolations();
|
|
});
|
|
});
|