Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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.
- if Rails.env.test?
:javascript
$.fx.off = true;
@rmontgomery429

This comment has been minimized.

Show comment Hide comment
@rmontgomery429

rmontgomery429 May 24, 2013

👍

👍

@shangardezi

This comment has been minimized.

Show comment Hide comment
@shangardezi

shangardezi Apr 26, 2018

👍

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment