Skip to content

Commit

Permalink
Disable dev/shm usage in selenium webdriver chrome options
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Sep 16, 2024
1 parent 8696fa3 commit e612fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/capybara_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# chrome_headless is the default driver for system tests
Capybara.register_driver :chrome_headless do |app|
options = Selenium::WebDriver::Chrome::Options.new(
args: %w[headless disable-gpu no-sandbox window-size=1536,1152],
args: %w[headless disable-gpu no-sandbox window-size=1536,1152 disable-dev-shm-usage],
)
Capybara::Selenium::Driver.new app,
browser: :chrome,
Expand All @@ -19,7 +19,7 @@
# :chrome_headless to :chrome_visible
Capybara.register_driver :chrome_visible do |app|
options = Selenium::WebDriver::Chrome::Options.new(
args: %w[disable-gpu no-sandbox window-size=1536,1152],
args: %w[disable-gpu no-sandbox window-size=1536,1152 disable-dev-shm-usage],
)
Capybara::Selenium::Driver.new app,
browser: :chrome,
Expand Down

0 comments on commit e612fac

Please sign in to comment.