cK1+/2V+OkM/0nXjxPwPj7LiOediUyZNUn48r29uGOL1S83PSUdyST207CP6mZjc
K8aJmnGsVEAcWPzbpNh14q/c
-----END PRIVATE KEY-----
+# Run system tests using headless Firefox
+system_test_headless: true
# Override Firefox binary used in system tests
#system_test_firefox_binary:
end
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
- driven_by :selenium, :using => :headless_firefox do |options|
+ driven_by :selenium, :using => Settings.system_test_headless ? :headless_firefox : :firefox do |options|
options.add_preference("intl.accept_languages", "en")
options.binary = Settings.system_test_firefox_binary if Settings.system_test_firefox_binary
end
# Capybara Webkit: https://github.com/jejacks0n/teaspoon/wiki/Using-Capybara-Webkit
require "selenium-webdriver"
config.driver = :selenium
- firefox_options = Selenium::WebDriver::Firefox::Options.new(:args => ["-headless"])
+ firefox_options = Selenium::WebDriver::Firefox::Options.new
+ firefox_options.args = ["-headless"] if Settings.system_test_headless
firefox_options.binary = Settings.system_test_firefox_binary if Settings.system_test_firefox_binary
config.driver_options = {
:client_driver => :firefox,