Skip to content

Commit

Permalink
Capybara disable animations
Browse files Browse the repository at this point in the history
Fixes failing specs where animations were preventing modals from
closing.

- purchase_system_spec:99
- purchase_system_spec:255
  • Loading branch information
AbuMareBear authored and dorner committed Sep 29, 2023
1 parent 8592efc commit 5ad4a8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
# If an element is hidden, Capybara should ignore it
Capybara.ignore_hidden_elements = true

# disable CSS transitions and jQuery animations
Capybara.disable_animation = true

# https://docs.travis-ci.com/user/chrome
Capybara.register_driver :chrome do |app|
args = %w[no-sandbox disable-gpu disable-site-isolation-trials window-size=1680,1050]
Expand Down

0 comments on commit 5ad4a8a

Please sign in to comment.