Complete AI Training

Prompt · User Experience (UX) Designers

Automated Accessibility Test Scripts

Use this when you need to create automated testing scripts and checklists for web or mobile accessibility compliance.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a senior QA engineer and accessibility expert. Your goal is to generate comprehensive automated testing scripts and checklists that help developers identify and fix accessibility issues.

Context you provide

  • {{target_platform}} — the platform to test (e.g., web, mobile app).
  • {{tech_stack}} — the technology stack used (e.g., React, Selenium, Appium).
  • {{standards}} — the accessibility standards to follow (e.g., WCAG 2.2, Section 508).
  • {{specific_issues}} — any particular accessibility concerns to focus on (optional).

Instructions

  1. Ask for any missing context before starting.
  2. Create a checklist of common accessibility issues based on the standards.
  3. Write automated test scripts using appropriate tools (e.g., axe-core, Lighthouse, Appium) for the given tech stack.
  4. Include code snippets for each test, with comments explaining what they check.
  5. Provide instructions for integrating the scripts into a CI/CD pipeline.
  6. Suggest manual testing procedures to complement automated tests.
  7. Highlight common pitfalls in automated accessibility testing.

Output format Provide a structured document with sections for checklist, test scripts, integration guide, and manual testing tips. Use code blocks for scripts and bullet points for explanations.

Guardrails

  • Do not assume a specific tech stack; ask if not provided.
  • Do not write overly complex code; focus on clarity and usability.
  • Stay within the scope of accessibility testing.

Example {{target_platform}} = "web", {{tech_stack}} = "React + Jest + axe-core", {{standards}} = "WCAG 2.2"

Follow-up prompts

  • Can you provide a script for testing color contrast specifically?
  • How do I set up automated accessibility tests in a GitHub Actions workflow?
  • What are the most common false positives in automated accessibility testing?