summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-07-10 11:21:48 +0000
committerRémy Coutable <remy@rymai.me>2017-07-10 11:21:48 +0000
commitcd735170d3bc5e71d46ba1e37249ae713b7842f8 (patch)
treeb41beb519b8792eeb15a856db7ea0e0c4d904423 /qa
parent784d983a8ffd376c0d5e8b55318c217be356d0d2 (diff)
parent250389d1b4023f76096141dc5f711d3d7a6ae11a (diff)
downloadgitlab-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.rb4
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