Fix blocks in chrome registration

pull/7995/head
Oliver Günther 5 years ago
parent 740b702b08
commit e2abef5ff8
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      spec/support/browsers/chrome.rb
  2. 2
      spec/support/browsers/firefox.rb

@ -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}")
loggingPrefs: { browser: 'ALL' }
)
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"

Loading…
Cancel
Save