AI SummaryCursor 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
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts