import AxeBuilder from "@axe-core/playwright"; import { expect, test } from "@playwright/test"; import { waitForHydration } from "./helpers"; const DOCS_A11Y_PAGES = [ { name: "homepage", path: "/" }, { name: "getting started", path: "/guide/getting-started" }, { name: "configuration", path: "/guide/configuration" }, { name: "REST API", path: "/api/rest" }, ] as const; test.describe("Docs Axe accessibility", () => { for (const docsPage of DOCS_A11Y_PAGES) { test(`${docsPage.name} has no Axe violations`, async ({ page }) => { await page.goto(docsPage.path); await waitForHydration(page); // VitePress renders a collapsible sidebar group that also has a link as // `