diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-10 11:17:42 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-10 11:17:42 +0200 |
commit | 250389d1b4023f76096141dc5f711d3d7a6ae11a (patch) | |
tree | b5bc8fc817eee67bbe86b353d2f745dff66c8274 /qa | |
parent | 6b76c19b4098084420f27def39078e8328f3979c (diff) | |
download | gitlab-ce-250389d1b4023f76096141dc5f711d3d7a6ae11a.tar.gz |
Configure headless chrome screenshots correctlyfix/gb/qa/configure-headless-chrome-screenshots
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 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 |