From 7be57950011331b8cdbc0acb21df9395cf171f65 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 29 Sep 2020 13:54:16 +0800 Subject: [PATCH] Add "scroll-behavior: auto;" CSS to Capybara::Server::AnimationDisabler to disable scroll animation --- lib/capybara/server/animation_disabler.rb | 3 +- lib/capybara/spec/views/with_animation.erb | 8 ++++++ spec/shared_selenium_session.rb | 33 ++++++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/lib/capybara/server/animation_disabler.rb b/lib/capybara/server/animation_disabler.rb index ed55f23e..86d86596 100644 --- a/lib/capybara/server/animation_disabler.rb +++ b/lib/capybara/server/animation_disabler.rb @@ -46,10 +46,11 @@ module Capybara DISABLE_MARKUP_TEMPLATE = <<~HTML HTML diff --git a/lib/capybara/spec/views/with_animation.erb b/lib/capybara/spec/views/with_animation.erb index c64ae040..2c3ef389 100644 --- a/lib/capybara/spec/views/with_animation.erb +++ b/lib/capybara/spec/views/with_animation.erb @@ -18,6 +18,14 @@ });