What it does
A Cursor rules file for writing end-to-end UI tests with Playwright and TypeScript. It focuses on critical flows such as login, checkout and registration, prefers test IDs and semantic selectors, relies on auto-waiting, and mocks external calls with page.route to keep tests isolated.
Use cases
- 01Test a login or checkout flow end to end
- 02Mock an external API with page.route
- 03Group tests in clear test.describe blocks