Merge branch 'fix/gb/qa/configure-headless-chrome-screenshots' into 'master'

Configure headless chrome screenshots correctly

See merge request !12746
This commit is contained in:
Rémy Coutable 2017-07-10 11:21:48 +00:00
commit cd735170d3
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ module QA
.new(app, browser: :chrome, desired_capabilities: capabilities)
end
Capybara::Screenshot.register_driver(:chrome) do |driver, path|
driver.browser.save_screenshot(path)
end
Capybara.configure do |config|
config.app_host = @address
config.default_driver = :chrome