-
-
Notifications
You must be signed in to change notification settings - Fork 62
Fix generator folder structure for install (#201) #203
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
base: master
Are you sure you want to change the base?
Changes from all commits
71d0ed7
ec3c140
748d843
44d4757
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
if defined?(CypressOnRails) | ||||||
CypressOnRails.configure do |c| | ||||||
c.api_prefix = "<%= options.api_prefix %>" | ||||||
c.install_folder = File.expand_path("#{__dir__}/../../<%= options.install_folder %>/<%= options.framework %>") | ||||||
c.install_folder = File.expand_path("#{__dir__}/../../<%= options.install_folder %>") | ||||||
# WARNING!! CypressOnRails can execute arbitrary ruby code | ||||||
# please use with extra caution if enabling on hosted servers or starting your local server on 0.0.0.0 | ||||||
c.use_middleware = !Rails.env.production? | ||||||
|
@@ -12,7 +12,7 @@ if defined?(CypressOnRails) | |||||
<% unless options.experimental %># <% end %> c.vcr_options = { | ||||||
<% unless options.experimental %># <% end %> hook_into: :webmock, | ||||||
<% unless options.experimental %># <% end %> default_cassette_options: { record: :once }, | ||||||
<% unless options.experimental %># <% end %> cassette_library_dir: File.expand_path("#{__dir__}/../../<%= options.install_folder %>/<%= options.framework %>/fixtures/vcr_cassettes") | ||||||
<% unless options.experimental %># <% end %> cassette_library_dir: File.expand_path("#{__dir__}/../../<%= options.install_folder %>/fixtures/vcr_cassettes") | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major 🧩 Analysis chainVCR cassettes now shared across frameworks. The cassette_library_dir path change moves VCR cassettes from framework-specific directories (e.g., Verify that cassette sharing works correctly across frameworks: 🏁 Script executed: #!/bin/bash
# Description: Check for any code that might expect framework-specific cassette paths
# Search for VCR cassette path references
echo "=== Checking VCR cassette path usage ==="
rg -n -A3 -B3 'vcr_cassettes|cassette_library_dir' --type=rb
# Look for framework-specific fixture paths
echo -e "\n=== Checking for framework-specific fixture references ==="
rg -n 'fixtures.*cypress|fixtures.*playwright' --type=rb Length of output: 154 🏁 Script executed: #!/bin/bash
echo "=== Checking VCR cassette path usage ==="
rg -n -A3 -B3 'cassette_library_dir|vcr_cassettes'
echo
echo "=== Checking for framework-specific fixture references ==="
rg -n -C3 'cypress/fixtures/vcr_cassettes'
rg -n -C3 'playwright/fixtures/vcr_cassettes' Length of output: 7365 Update README.md example for cassette_library_dir - cassette_library_dir: File.expand_path("#{__dir__}/../../spec/cypress/fixtures/vcr_cassettes")
+ cassette_library_dir: File.expand_path("#{__dir__}/../../spec/fixtures/vcr_cassettes") 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||
<% unless options.experimental %># <% end %> } | ||||||
c.logger = Rails.logger | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add missing link reference definition.
Line 11 references
[#201]
but the link definition is missing at the bottom of the file.Add the following link definition near line 515 (after the PR references):
🤖 Prompt for AI Agents