File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
lib/solidus_dev_support/rspec Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 21
21
opts . add_argument ( "--no-sandbox" )
22
22
opts . add_argument ( "--window-size=#{ CAPYBARA_WINDOW_SIZE } " )
23
23
opts . add_argument ( "--disable-search-engine-choice-screen" )
24
- opts . add_argument ( "--disable-backgrounding-occluded-windows" )
24
+
25
+ # From https://github.com/teamcapybara/capybara/issues/2796
26
+ # Chrome flags found from:
27
+ # - https://peter.sh/experiments/chromium-command-line-switches/
28
+ # - https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md
29
+ #
30
+ # Disable timers being throttled in background pages/tabs. Useful for parallel test runs.
31
+ opts . add_argument ( "disable-background-timer-throttling" )
32
+ # Normally, Chrome will treat a "foreground" tab instead as backgrounded if the surrounding window is occluded (aka
33
+ # visually covered) by another window. This flag disables that. Useful for parallel test runs.
34
+ opts . add_argument ( "disable-backgrounding-occluded-windows" )
35
+ # This disables non-foreground tabs from getting a lower process priority. Useful for parallel test runs.
36
+ opts . add_argument ( "disable-renderer-backgrounding" )
37
+
25
38
opts . browser_version = CAPYBARA_JAVASCRIPT_DRIVER_VERSION
26
39
end
27
40
Capybara ::Selenium ::Driver . new ( app , browser : :chrome , options : browser_options )
You can’t perform that action at this time.
0 commit comments