sync
This commit is contained in:
@@ -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 }) => {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user