Commit 250389d1 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Configure headless chrome screenshots correctly

parent 6b76c19b
...@@ -64,6 +64,10 @@ module QA ...@@ -64,6 +64,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