summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-10 11:17:42 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-10 11:17:42 +0200
commit250389d1b4023f76096141dc5f711d3d7a6ae11a (patch)
treeb5bc8fc817eee67bbe86b353d2f745dff66c8274
parent6b76c19b4098084420f27def39078e8328f3979c (diff)
downloadgitlab-ce-fix/gb/qa/configure-headless-chrome-screenshots.tar.gz
Configure headless chrome screenshots correctlyfix/gb/qa/configure-headless-chrome-screenshots
-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 b341aa3094a..81a6f755bba 100644
--- a/qa/qa/specs/config.rb
+++ b/qa/qa/specs/config.rb
@@ -64,6 +64,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