Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { expectNoCriticalA11yViolations } from "./utils/axe";
|
||||
|
||||
test.describe("404 page a11y", () => {
|
||||
test("unknown route has no critical or serious axe violations", async ({ page }) => {
|
||||
// We intentionally do not assert status: React Router renders an
|
||||
// ErrorBoundary client-side for unknown routes, and the response code
|
||||
// is implementation-dependent. The a11y of the rendered DOM is what we
|
||||
// gate on here.
|
||||
await page.goto("/__nonexistent_route__", { waitUntil: "domcontentloaded" });
|
||||
await expectNoCriticalA11yViolations(page);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user