Move accessibility tests to new folder

This commit is contained in:
adilallo
2025-09-03 14:47:36 -06:00
parent 25998e946f
commit ce53de9003
6 changed files with 85 additions and 10 deletions
@@ -1,8 +1,8 @@
import { describe, test, expect, beforeEach } from "vitest";
import { render, screen } from "@testing-library/react";
import { axe, toHaveNoViolations } from "jest-axe";
import Header from "../../app/components/Header.js";
import Footer from "../../app/components/Footer.js";
import Header from "../../../app/components/Header.js";
import Footer from "../../../app/components/Footer.js";
// Extend expect to include accessibility matchers
expect.extend(toHaveNoViolations);
@@ -155,7 +155,7 @@ describe("Accessibility - Component Level", () => {
}
const headingLevels = headings.map((heading) =>
parseInt(heading.tagName.charAt(1)),
parseInt(heading.tagName.charAt(1))
);
// Check that heading levels are sequential (no skipping levels)