diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-10 11:21:48 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-10 11:21:48 +0000 |
commit | cd735170d3bc5e71d46ba1e37249ae713b7842f8 (patch) | |
tree | b41beb519b8792eeb15a856db7ea0e0c4d904423 /qa | |
parent | 784d983a8ffd376c0d5e8b55318c217be356d0d2 (diff) | |
parent | 250389d1b4023f76096141dc5f711d3d7a6ae11a (diff) | |
download | gitlab-ce-cd735170d3bc5e71d46ba1e37249ae713b7842f8.tar.gz |
Merge branch 'fix/gb/qa/configure-headless-chrome-screenshots' into 'master'
Configure headless chrome screenshots correctly
See merge request !12746
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/specs/config.rb b/qa/qa/specs/config.rb index 0ce26a3f9ab..4dfdd6cd93c 100644 --- a/qa/qa/specs/config.rb +++ b/qa/qa/specs/config.rb @@ -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 |