Skip to content

Commit 5ef0951

Browse files
committed
Disable smooth scrolling in cuprite for perf
1 parent 8aec642 commit 5ef0951

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

spec/support/system.rb

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,20 @@
1717
config.include ActiveJob::TestHelper
1818

1919
config.before(:each, type: :system) do
20-
driven_by(:cuprite, screen_size: [1440, 810], options: {
21-
js_errors: true,
22-
headless: %w[0 false].exclude?(ENV["HEADLESS"]),
23-
inspector: %w[1 true].include?(ENV["INSPECTOR"]),
24-
slowmo: ENV["SLOWMO"]&.to_f,
25-
process_timeout: 15,
26-
timeout: 10,
27-
browser_options: ENV["CI"] ? {"no-sandbox" => nil} : {}
28-
})
20+
driven_by(:cuprite,
21+
screen_size: [1440, 810],
22+
options: {
23+
js_errors: true,
24+
headless: %w[0 false].exclude?(ENV["HEADLESS"]),
25+
inspector: %w[1 true].include?(ENV["INSPECTOR"]),
26+
slowmo: ENV["SLOWMO"]&.to_f,
27+
process_timeout: 15,
28+
timeout: 10,
29+
browser_options: ENV["CI"] ? {
30+
"no-sandbox" => nil,
31+
"disable-smooth-scrolling" => true
32+
} : {}
33+
})
2934
end
3035

3136
config.filter_gems_from_backtrace("capybara", "cuprite", "ferrum")

0 commit comments

Comments
 (0)