@webability/playwright
v1.0.4
Published
Playwright accessibility testing helper — drop-in a11y checks for your test suite
Maintainers
Readme
@webability/playwright
Accessibility testing for Playwright test suites. Drop-in, one line.
Install
npm install -D @webability/playwrightUsage
import { test, expect } from '@playwright/test'
import { a11yCheck } from '@webability/playwright'
test('homepage is accessible', async ({ page }) => {
await page.goto('/')
const result = await a11yCheck(page)
expect(result.summary.critical).toBe(0)
})Continuous monitoring (SPAs)
import { WebAbility } from '@webability/playwright'
test('checkout flow is accessible', async ({ page }) => {
const wa = new WebAbility(page)
await page.goto('/shop')
await wa.start()
await page.click('[data-add-to-cart]')
await page.click('[data-checkout]')
await page.fill('#email', '[email protected]')
const result = await wa.stop()
expect(result.summary.critical).toBe(0)
})Links
- WebAbility — AI-powered web accessibility platform
- Abilyo — Developer tools for accessibility testing
- Documentation
License
MIT
