This commit is contained in:
ik
2026-09-21 07:45:00 +07:00
parent b1a2eb5318
commit 9c521514fc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import AxeBuilder from "@axe-core/playwright";
import { expect, test } from "@playwright/test"; import { expect, test } from "@playwright/test";
for (const path of [ for (const path of [
"/", "/records", "/report", "/rules", "/privacy", "/", "/records", "/report", "/tackle", "/rules", "/privacy",
"/admin", "/admin/moderation", "/admin/external-sources", "/admin/media", "/admin", "/admin/moderation", "/admin/external-sources", "/admin/media",
]) { ]) {
test(`${path} has no serious accessibility violations`, async ({ page }) => { test(`${path} has no serious accessibility violations`, async ({ page }) => {
+1 -1
View File
@@ -108,7 +108,7 @@ for (const viewport of [{ name: "desktop", width: 1280, height: 900 }, { name: "
test("public pages fit the narrow viewport and expose the skip link", async ({ page }) => { test("public pages fit the narrow viewport and expose the skip link", async ({ page }) => {
await page.setViewportSize({ width: 320, height: 800 }); await page.setViewportSize({ width: 320, height: 800 });
for (const path of ["/", "/records", "/report", "/waterbodies", "/status"]) { for (const path of ["/", "/records", "/report", "/waterbodies", "/tackle", "/status"]) {
await page.goto(path); await page.goto(path);
const dimensions = await page.evaluate(() => ({ const dimensions = await page.evaluate(() => ({
clientWidth: document.documentElement.clientWidth, clientWidth: document.documentElement.clientWidth,