public
Last active

Speed up your Capybara JS specs you can turn off jquery animation. In this case all animations will immediately set elements to their final state when called, rather than displaying an effect.

  • Download Gist
js.html.haml
Haml
1 2 3
- if Rails.env.test?
:javascript
$.fx.off = true;

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.