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

Remove recommendation for Capybara disable_animation #40

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

mattbrictson
Copy link
Owner

Capybara's disable_animation option inserts a middleware that can conflict with other middleware, like Rack::Deflater. If removing animation is important for speeding up system tests, a more direct way to do it is to conditionally add CSS/JS to the application layout, rather rely on a middleware that could have unexpected side effects.

Given the potential complications, I am removing disable_animation from the default Capybara config file that nextgen generates.

Capybara's `disable_animation` option inserts a middleware that can
conflict with other middleware, like `Rack::Deflater`. If removing
animation is important for speeding up system tests, a more direct way
to do it is to conditionally add CSS/JS to the application layout,
rather rely on a middleware that could have unexpected side effects.

Given the potential complications, I am removing `disable_animation`
from the default Capybara config file that nextgen generates.
@mattbrictson mattbrictson added ✨ Feature Adds a new feature automerge Automatically merge PR once all required checks pass labels Feb 2, 2024
@kodiakhq kodiakhq bot merged commit 75b020b into main Feb 2, 2024
8 checks passed
@kodiakhq kodiakhq bot deleted the remove-capybara-animation-option branch February 2, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PR once all required checks pass ✨ Feature Adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant