Playwright accessibility testing Cursor rules
This Cursor rule file makes the assistant act as a QA engineer who writes accessibility tests with Playwright. It is for teams checking that key user flows meet WCAG 2.1 AA, using @axe-core/playwright to run automated checks and report what needs fixing.
What it does
Before writing tests, Cursor checks whether the project uses TypeScript by looking for tsconfig.json, .ts test files or TypeScript dependencies, and picks .ts or .js to match. Tests focus on critical flows, produce reports of accessibility issues and document remediation steps, with a login page test as the worked example.
How to use it
Ask Cursor for an accessibility test for a page or flow; the rule applies across the project.
Requirements and limits
Automated axe checks catch many issues but not all, so the reports are a starting point.
More in Rules and the Cursor library.
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.