accessibility-testing
Installation
SKILL.md
Accessibility Testing with axe-core
Automated accessibility testing for WCAG 2.1 AA/AAA compliance using axe-core integrated with Playwright.
Quick Start
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';
test('homepage has no accessibility violations', async ({ page }) => {
await page.goto('/');
const results = await new AxeBuilder({ page }).analyze();
expect(results.violations).toEqual([]);
});