Skip to content
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

Testing Generator: Improvements #1168

Merged

Conversation

stevepolitodesign
Copy link
Contributor

Follow-up to #1156

Creates parity with Rails' decision to use a headless driver by default.

This will be fixed in an upcoming release of rspec-rails, but I felt it was important to capture here. Additionally, it ensures the screen_size is the same as what is set in Rails.

Removes webdrivers dependency in favor of selenium-webdriver. This generator assumes the app was generated with the --skip-test flag, which means we need to add the selenium-webdriver and capybara gems.

Updates action_dispatch-testing-integration-capybara dependency to the most recent tagged release in an effort to suppress Dependabot notifications.

Ensure all files under spec/support are loaded by uncommenting a line generated by the RSpec installation script.

Follow-up to #1156

Creates parity with Rails' decision to [use a headless driver by
default][headless].

This will be fixed in an [upcoming release][rspec] of rspec-rails, but I
felt it was important to capture here. Additionally, it ensures the
`screen_size` is the same as what is set in Rails.

Removes `webdrivers` dependency in favor of `selenium-webdriver`. This
generator assumes the app was generated with the `--skip-test` flag,
which means we need to add the `selenium-webdriver` and `capybara` gems.

Updates `action_dispatch-testing-integration-capybara` dependency to the
most recent tagged release in an effort to suppress Dependabot
notifications.

Ensure all files under `spec/support` are loaded by uncommenting a line
generated by the RSpec installation script.

[headless]: rails/rails#50512
[rspec]: rspec/rspec-rails#2746
Comment on lines +181 to +182
Set up the project for an in-depth test-driven development workflow via
[rspec-rails][] and friends.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I felt it was easier to keep this simple.

@stevepolitodesign stevepolitodesign merged commit 8b8ecb9 into suspenders-3-0-0 Mar 21, 2024
2 checks passed
@stevepolitodesign stevepolitodesign deleted the suspenders-3-0-0-testing-follow-up branch March 21, 2024 17:52
stevepolitodesign added a commit that referenced this pull request May 10, 2024
Follow-up to #1156

Creates parity with Rails' decision to [use a headless driver by
default][headless].

This will be fixed in an [upcoming release][rspec] of rspec-rails, but I
felt it was important to capture here. Additionally, it ensures the
`screen_size` is the same as what is set in Rails.

Removes `webdrivers` dependency in favor of `selenium-webdriver`. This
generator assumes the app was generated with the `--skip-test` flag,
which means we need to add the `selenium-webdriver` and `capybara` gems.

Updates `action_dispatch-testing-integration-capybara` dependency to the
most recent tagged release in an effort to suppress Dependabot
notifications.

Ensure all files under `spec/support` are loaded by uncommenting a line
generated by the RSpec installation script.

[headless]: rails/rails#50512
[rspec]: rspec/rspec-rails#2746
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant