-
-
Notifications
You must be signed in to change notification settings - Fork 62
Fix install_folder path in generator (#201) #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The generator was setting install_folder to include the framework subdirectory (e.g., e2e/cypress), but the correct path should be just the install folder (e.g., e2e) where the cypress.config.js file is located. This fixes the issue where Cypress couldn't find the config file after running the install generator. Fixes #201 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
WalkthroughUpdates the CypressOnRails initializer template to compute c.install_folder using only options.install_folder, removing the previous inclusion of options.framework from the path. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review for PR #202SummaryThis PR fixes a path configuration bug in the generator that was preventing Cypress/Playwright from finding their config files. The fix correctly points ✅ Positive Aspects
|
Closing this PR - need to investigate the correct fix more carefully. The issue is more complex than initially thought. |
Summary
install_folder
path in the generator's initializer template to point to the install directory (e.g.,e2e
) instead of the framework subdirectory (e.g.,e2e/cypress
)Problem
After running
bin/rails g cypress_on_rails:install
, the generated initializer had:But the actual file structure created is:
This caused Cypress to fail finding the config file since it expects the config to be in the same directory as the
install_folder
setting.Solution
Changed the template to:
Now
install_folder
correctly points to where the config file lives.Test plan
Fixes #201
🤖 Generated with Claude Code
Summary by CodeRabbit