test: extend admin accessibility coverage

This commit is contained in:
ik
2026-09-16 20:11:18 +07:00
parent c216229c61
commit d3ee8ebbd7
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
import AxeBuilder from "@axe-core/playwright";
import { expect, test } from "@playwright/test";
for (const path of ["/", "/records", "/report", "/rules", "/privacy"]) {
for (const path of [
"/", "/records", "/report", "/rules", "/privacy",
"/admin", "/admin/moderation", "/admin/external-sources", "/admin/media",
]) {
test(`${path} has no serious accessibility violations`, async ({ page }) => {
await page.goto(path);
const results = await new AxeBuilder({ page }).withTags(["wcag2a", "wcag2aa", "wcag21aa"]).analyze();