Skip to content

Commit

Permalink
Merge pull request #14037 from opf/code-maintenance/disable-smooth-sc…
Browse files Browse the repository at this point in the history
…rolling-in-tests

Disable Smooth Scrolling Behavior in Feature Specs
  • Loading branch information
aaron-contreras authored Oct 27, 2023
2 parents 78a0cf0 + ed7ac18 commit 2e5410a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/support/browsers/chrome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def register_chrome(language, name: :"chrome_#{language}", override_time_zone: n
# This is REQUIRED for running in a docker container
# https://github.com/grosser/parallel_tests/issues/658
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--disable-smooth-scrolling')

options.add_preference(:download,
directory_upgrade: true,
Expand Down
2 changes: 2 additions & 0 deletions spec/support/browsers/firefox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def register_firefox(language, name: :"firefox_#{language}")
# only one FF process
profile['dom.ipc.processCount'] = 1

profile['general.smoothScroll'] = false

options = Selenium::WebDriver::Firefox::Options.new(profile:)

yield(profile, options) if block_given?
Expand Down
3 changes: 2 additions & 1 deletion spec/support/cuprite_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def register_better_cuprite(language, name: :"better_cuprite_#{language}")
'disable-gpu': nil,
'disable-popup-blocking': nil,
lang: language,
'no-sandbox': nil
'no-sandbox': nil,
'disable-smooth-scrolling': true
}

if ENV['OPENPROJECT_TESTING_AUTO_DEVTOOLS'].present?
Expand Down

0 comments on commit 2e5410a

Please sign in to comment.