accessibility-testing
Tests web and app accessibility against WCAG level AA: automated rule checks, keyboard and focus order, names and roles, contrast, forms and manual screen reader checks. Use when the user says 'accessibility test', 'a11y', 'WCAG' or 'screen reader'. Not for general UI journeys (use ui-automation).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- accessibility-testing
- license
- Apache-2.0
- description
- Tests web and app accessibility against WCAG level AA: automated rule checks, keyboard and focus order, names and roles, contrast, forms and manual screen reader checks. Use when the user says 'accessibility test', 'a11y', 'WCAG' or 'screen reader'. Not for general UI journeys (use ui-automation).
- argument-hint
- [page, component or user journey]
02 资源文件 4
- 参考文档references/java.md1.0 KB
- 参考文档references/manual-checklist.md1.5 KB
- 参考文档references/python.md948 B
- 参考文档references/typescript.md1.1 KB
03 SKILL.md 正文
accessibility-testing
Objective
An inaccessible product shuts out users and can break the law. Automated checks find only part of the problems; keyboard and screen reader checks find the rest. This skill combines both, starting with the critical journeys.
Context
- Read
.agents/qa-project-context.mdif it exists. Use its critical journeys, UI test framework and quality goals. - If it does not exist, find the UI test framework in the repository. Suggest
qa-project-contextonce.
Discovery questions
- Which standard and level is the target (for example WCAG 2.2 AA), and is there a legal requirement?
- Which journeys are critical?
- Which UI test framework is used, so that rule checks can run in the existing tests?
Principles
- Automated rule checks catch only part of the problems. They are a floor, not a proof.
- Keyboard first. Every action works with the keyboard alone, with a visible focus in a logical order.
- Names, roles and states come from the semantics of the markup. They also make UI tests stable.
- Test the dynamic states: errors, dialogs, menus, loading, toasts, not only the first page view.
- Real assistive technology for critical journeys: a screen reader check by a person.
Workflow
- List the journeys and the components in scope, and their dynamic states.
- Add automated rule checks to the UI tests for each page and each important state (see the stack recipe). Fail on serious and critical violations; track the rest.
- Do a keyboard pass for each journey with the manual checklist.
- Check zoom to 200% and a narrow screen for reflow, and the color contrast of text and controls.
- Do a screen reader pass for the critical journeys.
- Report each issue with the guideline, the element, the user impact and a fix.
Stack recipes
Read only the recipe for the stack of the project: Java, TypeScript and JavaScript, Python. For another stack, apply the principles with the project's own tools, and say so.
Anti-patterns
- "The scanner is green, so it is accessible."
- Only the first page state is checked. Errors and dialogs are not.
- Disabling rules to make the check pass, without a ticket.
Done when
- Automated rule checks run in the UI tests for each page and state in scope, and block on serious violations.
- Each critical journey passed a keyboard check and a screen reader check, or the gaps are listed.
- Each issue has the guideline, the impact and a fix.
Related skills
ui-automation: the tests that run the rule checks.exploratory-testing: keyboard and screen reader sessions.ci-cd-integration: the checks in the pipeline.
04 同仓库更多 Skills
unit-testing
Writes, fixes or improves unit tests for rules, calculations, validation and state logic: arrange-act-assert, exact oracles, boundary sets, doubles only at boundaries, controlled clock and randomness. Use when the user says 'write unit tests', 'TDD this' or 'mock this dependency'. Not for HTTP endpoints (use api-testing).
ui-automation
Writes, fixes or structures browser end-to-end tests for critical journeys: role, label or test ID locators, auto-waiting assertions, API data setup, page objects, auth reuse and traces. Use when the user says 'UI test', 'end-to-end test' or 'our UI tests are brittle'. Not for business rules (use unit-testing).
testcase-reviewer
Reviews automated tests or manual test cases like a senior test architect: scores fidelity, oracles, assertion depth, edge cases and determinism, and finds tests that pass on wrong code. Use when the user says 'review my tests', 'test smells' or 'review AI-written tests'. Not for fault injection (use mutation-probe).
testability-review
Scores how testable a feature, module or design is before tests exist (seams for clock, randomness and network, hidden state, observability) and gives the smallest production change per blocker. Use when the user asks 'is this testable' or 'why is this hard to test'. Not for writing the tests (use unit-testing).
test-strategy
Writes a test strategy for a product, system or team: quality goals, test levels and their share, environments, data, automation scope, non-functional testing, metrics and a roadmap. Use when the user says 'test strategy' or 'QA strategy'. Not for one sprint or release plan (use test-planning).
test-runner
Finds how a project runs its tests, runs the right subset, and triages each failure as product bug, test defect, environment problem or flaky test, with evidence. Use when the user says 'run the tests' or asks 'which tests fail and why'. Not for pipeline design (use ci-cd-integration).