What it does
A Cursor rules file for writing integration tests with Playwright and TypeScript. It checks how the UI and API work together, mocks responses with page.route, validates state changes and error handling, and keeps each feature to 3 to 5 focused tests grouped in test.describe blocks.
Use cases
- 01Mock an API response and check the UI update
- 02Test a registration form against success and error cases
- 03Validate request payloads sent by the front end