From 1e88d1a1d727b80c97ca86312b3f8cc96d58ff2a Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 14 Oct 2022 13:52:05 +0200 Subject: [PATCH] chore(capybara): use same size in headless or not --- spec/support/capybara.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index b19a446fd..34dec9e8f 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -7,6 +7,7 @@ Capybara.register_driver :chrome do |app| options = Selenium::WebDriver::Chrome::Options.new options.add_argument('--no-sandbox') unless ENV['SANDBOX'] options.add_argument('--mute-audio') + options.add_argument('--window-size=1440,900') download_path = Capybara.save_path # Chromedriver 77 requires setting this for headless mode on linux