AcademyRulesDevelopment

Playwright end-to-end testing rules for Cursor

QA and front-end teams automating the main user journeys of a web app.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/playwright-e2e-testing-cursorrules-prompt-file.mdc -o .cursor/rules/playwright-e2e-testing.mdc
playwright-e2e-testing.mdc

Loading the file...

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

  1. 01Test a login or checkout flow end to end
  2. 02Mock an external API with page.route
  3. 03Group tests in clear test.describe blocks

Questions about
Playwright end-to-end testing rules for Cursor.

What is Playwright end-to-end testing rules for Cursor used for?

QA and front-end teams automating the main user journeys of a web app. 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.

How do I install Playwright end-to-end testing rules for Cursor?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/playwright-e2e-testing-cursorrules-prompt-file.mdc -o .cursor/rules/playwright-e2e-testing.mdc

Is Playwright end-to-end testing rules for Cursor open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Playwright end-to-end testing rules for Cursor safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.