From f64c8a93f0f8a7c2f0054e09b51ee2afe0ba9af8 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 6 Sep 2024 12:13:40 +0200 Subject: [PATCH] Fix for latest chrome in feature specs --- spec/rails_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 797ad72..1dd9f36 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -59,8 +59,9 @@ Capybara::Selenium::Driver.load_selenium browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts| - opts.args << "--headless" - opts.args << "--window-size=1280,800" + opts.add_argument("--headless") + opts.add_argument("--window-size=1280,800") + opts.add_argument("--disable-search-engine-choice-screen") end Capybara::Selenium::Driver.new( app,