Commit 71d0ed7
Fix generator to create correct folder structure for install
The generator was creating e2e_helper.rb and app_commands inside the
framework subdirectory (e.g., e2e/cypress/app_commands), but they should
be at the install_folder root level (e.g., e2e/app_commands).
Changes:
- Move e2e_helper.rb from install_folder/framework/ to install_folder/
- Move app_commands/ from install_folder/framework/ to install_folder/
- Update initializer template to set install_folder without framework path
- Update VCR cassette path to use install_folder directly
This ensures:
1. Cypress/Playwright can find their config files via --project flag
2. Middleware can find e2e_helper.rb and app_commands at install_folder
3. Both frameworks can share the same helper and commands if needed
Fixes #201
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent abb505c commit 71d0ed7
File tree
2 files changed
+4
-4
lines changed- lib/generators/cypress_on_rails
- templates/config/initializers
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments