
Accessibility Testing
This covers the essentials for testing web accessibility compliance, with examples for axe-core integration in Playwright, Cypress, and Jest. You get keyboard navigation tests, ARIA validation, and WCAG 2.1/2.2 checks. The best practices section is honest about automated testing only catching 30-40% of issues, so you'll still need manual testing and real screen readers. Use this when you need to validate WCAG AA compliance or test color contrast, focus management, and screen reader compatibility. The reference guides show actual test implementations rather than just theory, which makes it immediately useful for setting up CI checks.
- skills.sh installs
- 580
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill accessibility-testing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Accessibility Testing
Table of Contents
Overview
Accessibility testing ensures web applications are usable by people with disabilities, including those using screen readers, keyboard navigation, or other assistive technologies. It validates compliance with WCAG (Web Content Accessibility Guidelines) and identifies barriers to accessibility.
When to Use
- Validating WCAG 2.1/2.2 compliance
- Testing keyboard navigation
- Verifying screen reader compatibility
- Testing color contrast ratios
- Validating ARIA attributes
- Testing form accessibility
- Ensuring focus management
- Testing with assistive technologies
Quick Start
Minimal working example:
// tests/accessibility/homepage.a11y.test.ts
import { test, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";
test.describe("Homepage Accessibility", () => {
test("should not have any automatically detectable WCAG A or AA violations", async ({
page,
}) => {
await page.goto("/");
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Testing & QA, AI & Agent Building, Design & UI/UX, CLI & Terminal
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Push Notification Setup580
- Database Schema Documentation576
- App Store Deployment569
- Mobile App Debugging568
- Security Audit Logging568
- Bundle Size Optimization567
- Process Mapping563
- Oauth Implementation558
- Integration Testing557
- Memory Optimization552
- Semantic Versioning552
- Caching Strategy551
- Real Time Features548
- Web Performance Audit548
- Browser Debugging545
- Mobile Offline Support545
- Design System Creation543
- Gcp Cloud Run541
- Code Generation Template537
- Sql Injection Prevention533
- Grpc Service Development532
- Gap Analysis531
- Network Debugging531
- Payment Gateway Integration529