test(e2e): align web specs with current app routes

This commit is contained in:
Ho Ngoc Hai
2026-05-04 20:11:09 +07:00
parent f112045826
commit 39156fc107
21 changed files with 334 additions and 458 deletions

View File

@@ -12,7 +12,7 @@
import fs from 'node:fs';
import path from 'node:path';
import { AxeBuilder } from '@axe-core/playwright';
import { test, expect } from '@playwright/test';
import { test } from '@playwright/test';
const REPORTS_DIR = path.join(__dirname, 'reports');
@@ -169,7 +169,7 @@ for (const [routeKey, urlPath] of ROUTES) {
const summary = blocking
.map((v) => ` [${v.impact}] ${v.id}: ${v.description} (${v.nodes.length} node(s)) — ${v.helpUrl}`)
.join('\n');
expect.fail(
throw new Error(
`${blocking.length} blocking a11y violation(s) on ${urlPath}:\n${summary}\n\nSee full report: e2e/a11y/reports/${routeKey}.json`,
);
}