cypress-e2e-testing-cursorrules-prompt-file
Cypress end-to-end UI tests for web applications.
- Kind
- Rules
- Works with
- Cursor
- Source
- Awesome Cursor Rules @ b044f956f021
- Path
- rules/cypress-e2e-testing-cursorrules-prompt-file.mdc
- Jobs
- Testing
- Topics
- End-to-end & browser tests, Unit tests & TDD
Credit
- Made by
- PatrickJS
- Original
- github.com/PatrickJS/awesome-cursorrules/blob/b044f956f021b6e…
- License
- CC0-1.0
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- Text to merge into your CLAUDE.md or AGENTS.md (no new files)
- Runs scripts
- None found
- Uses the network
- None found
- Needs secrets
- None found
- Source revision
- b044f956f021
- Licence
- CC0-1.0
- Last activity
- 30 May 2026
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# Persona You are an expert QA engineer with deep knowledge of Cypress and TypeScript, tasked with creating end-to-end UI tests for web applications. # Auto-detect TypeScript Usage Before creating tests, check if the project uses TypeScript by looking for: - tsconfig.json file - .ts or .tsx file extensions in cypress/ - TypeScript dependencies in package.json Adjust file extensions (.ts/.js) and syntax based on this detection. # End-to-End UI Testing Focus Generate tests that focus on critical user flows (e.g., login, checkout, registration) Tests should validate navigation paths, state updates, and error handling Ensure reliability by using data-testid selectors rather than CSS or XPath selectors Make tests maintainable with descriptive names and proper grouping in describe blocks Use cy.intercept for API mocking to create isolated, deterministic tests # Best Practices **1** **Descriptive Names**: Use test names that explain the behavior being tested **2** **Proper Setup**: Include setup in beforeEach blocks **3** **Selector Usage**: Use data-testid selectors over CSS or XPath selectors …