Add accessibility checks to your Playwright end-to-end tests
3-Second Blueprint (English)
- Chrome Lighthouse uses Deque's axe-core engine under the hood to detect DOM accessibility violations.
- Initialize AxeBuilder with a Playwright page and call analyze() to assert zero violations in E2E tests.
- Use withRules() to match Lighthouse audit rules and testInfo.attach() to embed JSON violation reports.
Playwrightaxe-coreAxeBuilderChrome Lighthouse
3-Sekunden-Fazit (Deutsch)
- Chrome Lighthouse nutzt intern Deques axe-core-Engine zur Erkennung von Barrierefreiheits-Verstößen im DOM.
- AxeBuilder mit einer Playwright-Page initialisieren und per analyze() null Verstöße in E2E-Tests prüfen.
- Mit withRules() Lighthouse-Regeln abgleichen und JSON-Berichte über testInfo.attach() an Tests anhängen.
Playwrightaxe-coreAxeBuilderChrome Lighthouse
Note / Hinweis: Blueprints are AI-generated educational summaries (0% Politics · 0% Religion · 0% Brainrot) and do not constitute medical, legal, or financial advice. / KI-generierte Zusammenfassung zu Bildungszwecken – ersetzt keine medizinische, rechtliche oder finanzielle Fachberatung.