From e612fac2528eda7057b74decb509044119d20fe3 Mon Sep 17 00:00:00 2001 From: moveson Date: Mon, 16 Sep 2024 17:08:04 -0600 Subject: [PATCH] Disable dev/shm usage in selenium webdriver chrome options --- spec/support/capybara_config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/capybara_config.rb b/spec/support/capybara_config.rb index c385c1597..d4a779248 100644 --- a/spec/support/capybara_config.rb +++ b/spec/support/capybara_config.rb @@ -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, @@ -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,