Skip to content
Prompt

10x-project — Cursor Rules

by michal-kozlik

AI Summary

Cursor Rules for 10x-project provides testing guidelines and best practices for E2E testing with Playwright, helping developers maintain consistent, resilient, and maintainable test suites in Cursor.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "10x-project — Cursor Rules" prompt rules to my project.
Repository: https://github.com/michal-kozlik/10x-project

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Cursor Rules for 10x-project

Guidelines for E2E

PLAYWRIGHT • Initialize configuration only with Chromium/Desktop Chrome browser • Use browser contexts for isolating test environments • Implement the Page Object Model for maintainable tests in ./e2e/page-objects • Use data-testid attributes when introducing resilient test-oriented selectors • When following data-testid convention, locate elements by await page.getByTestId('selectorName') • Leverage API testing for backend validation • Implement visual comparison with expect(page).toHaveScreenshot() • Use the codegen tool for test recording • Leverage trace viewer for debugging test failures • Implement test hooks for setup and teardown • Use expect assertions with specific matchers • Leverage parallel execution for faster test runs • Follow 'Arrange', 'Act', 'Assert' approach to test structure for simplicity and readability.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 5mo ago
Stale
AdoptionUnder 100 stars
1 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars1
Issues0
Updated5mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more