Add Storybook Playwright testing rules using new Cursor directory pattern#71
Conversation
- Document complete setup process from environment to CI/CD - Explain story structure patterns and best practices - Include real examples from existing codebase - Cover troubleshooting and debugging techniques - Provide reusable patterns for form testing - Detail React Router stub decorator usage - Include advanced patterns and utilities
|
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
📝 Storybook Preview: View Storybook This preview will be updated automatically when you push new changes to this PR.
|
|
@codegen-sh let's convert this into a cursor rule, look up the cursor rule directory best practices for reference.
|
- Convert comprehensive testing guide into .cursorrules format - Include essential code patterns and best practices - Define three-phase testing structure (default → invalid → valid) - Specify React Router stub decorator usage - Document user interaction patterns and async testing - Include verification steps and common pitfalls - Provide reusable code snippets and examples - Follow Cursor rules best practices with clear structure
|
Perfect! I've converted the comprehensive Storybook testing guide into a Cursor rules file! 🎨 What I Added✅
Key Features of the Cursor Rules🔧 Essential Code Elements:
✅ Verification Checklist:
How It WorksThe
🔗 Updated PR: View PR #71 now includes both the comprehensive guide AND the Cursor rules! This gives you the best of both worlds - detailed documentation for humans and AI-optimized rules for Cursor IDE! 🚀 💻 View my work • React 👍 or 👎 |
|
@codegen-sh this isn't using the new cursor rule directory best practices https://docs.cursor.com/context/rules Let's use the new directory pattern and remove the codegen.md file also
|
- Remove legacy .cursorrules file and codegen.md - Create .cursor/rules/storybook-testing.mdc following new best practices - Use MDC format with proper metadata (type: Always) - Organize rules in proper directory structure for better maintainability - Follow Cursor's recommended approach for project-specific rules
|
Perfect! I've migrated to the new Cursor rules directory pattern! 🗂️ What I Changed✅ Removed legacy files:
✅ Created modern structure:
Key Benefits of New Approach🎯 Better Organization:
🔧 Enhanced Functionality:
📚 Follows Best Practices:
Updated PR🔗 View PR #71 now uses the modern Cursor rules approach! The rules will now automatically guide Cursor IDE users to write consistent, high-quality Storybook Playwright tests following your established patterns. Much cleaner and more maintainable! 🚀 💻 View my work • React 👍 or 👎 |
Overview
This PR adds comprehensive Storybook Playwright testing rules using the new Cursor rules directory pattern. The rules provide AI-optimized guidance for writing effective tests that ensure working code in the lambda-curry/forms repository.
What's Included
🗂️ Modern Cursor Rules Structure
.cursor/rules/storybook-testing.mdc- Following the new Cursor rules best practicestype: Always)🎯 Key Patterns Documented
🛠️ Essential Code Elements
✅ Verification Framework
Testing Setup Analysis
The repository uses a sophisticated testing stack:
Benefits for Development
This rules file enables developers to:
Migration from Legacy Approach
.cursorrulesfilecodegen.mddocumentation file.cursor/rules/directory structureFile Changes
.cursor/rules/storybook-testing.mdc- New Cursor rules file (240+ lines).cursorrulesandcodegen.md(legacy files)The rules are now properly structured following Cursor's latest best practices and will provide consistent AI guidance for Storybook Playwright testing across the entire development team.
💻 View my work • About Codegen