Playwright API testing Cursor rules
This rule file has Cursor act as a QA engineer writing API tests with Playwright and TypeScript. It is for teams who want endpoint tests that check status codes, response data and schema compliance, built with the pw-api-plugin package and independent of existing server state.
What it does
Cursor first detects TypeScript from tsconfig.json or .ts files and adjusts extensions and syntax. Tests use pw-api-plugin to send and validate requests, focus on critical endpoints, and stay isolated and deterministic. It includes the plugin setup for the Playwright config and an example test.
How to use it
Ask for API tests against a named endpoint and Cursor follows the pattern.
Requirements and limits
It depends on installing pw-api-plugin and configuring it in Playwright.
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.