Commit cd735170 authored by Rémy Coutable's avatar Rémy Coutable

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

Configure headless chrome screenshots correctly

See merge request !12746
parents 784d983a 250389d1
...@@ -52,6 +52,10 @@ module QA ...@@ -52,6 +52,10 @@ module QA
.new(app, browser: :chrome, desired_capabilities: capabilities) .new(app, browser: :chrome, desired_capabilities: capabilities)
end end
Capybara::Screenshot.register_driver(:chrome) do |driver, path|
driver.browser.save_screenshot(path)
end
Capybara.configure do |config| Capybara.configure do |config|
config.app_host = @address config.app_host = @address
config.default_driver = :chrome config.default_driver = :chrome
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment