Move accessibility tests to new folder
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user