Skip to content
Prompt

Physia — Cursor Rules

by Malajka

AI Summary

Physia provides Cursor IDE rules for a modern web stack (React, TypeScript, Supabase, Playwright) with detailed E2E testing guidelines using the Page Object Model pattern. Developers using Cursor on projects with this tech stack benefit from immediate, context-aware coding assistance and testing best practices.

Install

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

I want to add the "Physia — Cursor Rules" prompt rules to my project.
Repository: https://github.com/Malajka/Physia

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 Physia

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 2mo ago
Active
AdoptionUnder 100 stars
4 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars4
Issues4
Updated2mo 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