What it does
A Cursor rules file for writing API tests with Playwright and TypeScript. It uses the pw-api-plugin package to send and validate requests, and asks for isolated, deterministic tests that check status codes, response data and schema, including error cases.
Use cases
- 01Check status codes and response bodies of an endpoint
- 02Validate a response against its expected schema
- 03Test error responses without relying on server state