test(e2e): align web specs with current app routes
This commit is contained in:
@@ -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`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user