@ -39,7 +39,7 @@ def register_chrome_headless(language, name: :"chrome_headless_#{language}")
loggingPrefs: { browser: 'ALL' }
)
yield options, capabilities
yield(options, capabilities) if block_given?
client = Selenium::WebDriver::Remote::Http::Default.new
client.read_timeout = 180
@ -40,7 +40,7 @@ def register_firefox_headless(language, name: :"firefox_headless_#{language}")
yield profile, options, capabilities
yield(profile, options, capabilities) if block_given?
unless ActiveRecord::Type::Boolean.new.cast(ENV['OPENPROJECT_TESTING_NO_HEADLESS'])
options.args << "--headless"