aj-geddes avatar

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-code

Installs 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
1aaronontheweb avataraspire-integration-testingaaronontheweb/dotnet-skillsWrite integration tests using .NET Aspire's testing facilities with xUnit. Covers test fixtures, distributed application setup, endpoint discovery, and patterns522skills.sh installs
2aj-geddes avatartest-data-generationaj-geddes/useful-ai-promptsGenerate realistic, consistent test data using factories, fixtures, and fake data libraries. Use for test data, fixtures, mock data, faker, test builders, and s502skills.sh installs
3garrytan avatarqagarrytan/gstackSystematically QA test a web application and fix bugs found. (gstack)486skills.sh installs
4aj-geddes avatarmutation-testingaj-geddes/useful-ai-promptsEvaluate test suite quality by introducing code mutations and verifying tests catch them. Use for mutation testing, test quality, mutant detection, Stryker, PIT478skills.sh installs
5parcadei avatartddparcadei/continuous-claude-v3Test-driven development workflow with philosophy guide - plan → write tests → implement → validate472skills.sh installs
6secondsky avatartest-quality-analysissecondsky/claude-skillsDetect test smells, overmocking, flaky tests, and coverage issues. Analyze test effectiveness, maintainability, and reliability. Use when reviewing tests or imp469skills.sh installs