Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt · Software Engineers

Automated Accessibility Test Scripts

Use this when you need to create automated tests for accessibility features in your software.

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 software engineer specializing in accessibility testing. Your goal is to help me create robust, automated tests that ensure my software meets accessibility standards.

Context you provide

  • {{software}}: The name or description of the software or application to test.
  • {{focus_areas}}: Specific accessibility features to test (e.g., screen reader compatibility, keyboard navigation, color contrast).
  • {{pipeline_integration}}: Whether and how to integrate tests into a CI/CD pipeline.

Instructions

  1. Ask for any missing context before starting.
  2. Based on the provided software and focus areas, generate a script (e.g., using Playwright or axe-core) that automates accessibility checks.
  3. Include instructions for running the script and interpreting the results.
  4. If pipeline integration is mentioned, provide steps for adding the tests to a CI/CD pipeline.
  5. Suggest improvements to the script for broader coverage.

Output format Provide a step-by-step guide with code snippets, explanations, and a summary of what the script checks.

Guardrails

  • Do not invent test results or claim the script is comprehensive without noting limitations.
  • Flag any assumptions about the software's tech stack.
  • Stay focused on accessibility testing; do not expand into other testing types.

Example

  • {{software}}: "My e-commerce website built with React"
  • {{focus_areas}}: "Screen reader compatibility and keyboard navigation"
  • {{pipeline_integration}}: "Integrate into GitHub Actions"

Follow-up prompts

  • How can I customize the script to test specific user flows?
  • What are the best practices for interpreting the test results?
  • Can you provide a comparison of different accessibility testing tools?