Skip to content

Commit

Permalink
Maintenance: Disabled shm usage in the selenium chrome driver.
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Gruner <[email protected]>
  • Loading branch information
tschaefer and mgruner committed May 17, 2023
1 parent bb42b21 commit 5f51bc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/support/capybara/selenium_driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def build_chrome_driver(app, user_agent: nil)
'intl.accept_languages' => 'en-US',
'profile.default_content_setting_values.notifications' => 1, # ALLOW notifications
},
args: %w[--enable-logging --v=1],
# Disable shared memory usage as it does not really provide a performance gain but cause resource limit issues in CI.
args: %w[--enable-logging --v=1 --disable-dev-shm-usage],
# Disable the "Chrome is being controlled by automated test software." info bar.
exclude_switches: ['enable-automation'],
)
Expand Down
3 changes: 2 additions & 1 deletion test/browser_test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def browser_options
'intl.accept_languages' => 'en-US',
'profile.default_content_setting_values.notifications' => 1, # ALLOW notifications
},
args: %w[--enable-logging --v=1],
# Disable shared memory usage as it does not really provide a performance gain but cause resource limit issues in CI.
args: %w[--enable-logging --v=1 --disable-dev-shm-usage],
# Disable the "Chrome is being controlled by automated test software." info bar.
exclude_switches: ['enable-automation'],
)
Expand Down

0 comments on commit 5f51bc6

Please sign in to comment.