lib/agilibox/cucumber_helpers/cuprite.rb in agilibox-1.5.11 vs lib/agilibox/cucumber_helpers/cuprite.rb in agilibox-1.5.12
- old
+ new
@@ -1,9 +1,16 @@
require "capybara/cuprite"
Capybara.register_driver :agilibox_cuprite do |app|
Capybara::Cuprite::Driver.new(app,
- :inspector => true,
+ :browser_options => {
+ :"disable-gpu" => true,
+ :"no-sandbox" => nil,
+ },
+ :headless => (ENV["CHROME_HEADLESS"].to_s != "false"),
+ :inspector => true,
+ :js_errors => true,
+ :process_timeout => 5,
:window_size => Agilibox::CucumberConfig.window_size,
)
end
Capybara.default_driver = :agilibox_cuprite