diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-12-15 14:22:12 -0600 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-12-15 14:22:12 -0600 |
commit | ac0dba6dd1cdd5a78c8a3bfd9adb6c9ae63489aa (patch) | |
tree | a949a3a4fdcf60f898ca92debff45365b11e7693 /qa | |
parent | 95f5a525b5a729725d6b559101026b8f39c9c39d (diff) | |
download | gitlab-ce-ac0dba6dd1cdd5a78c8a3bfd9adb6c9ae63489aa.tar.gz |
Only keep screenshots from last run for QA specsqa/rs-screenshot-last-run
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/runtime/browser.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb index 6fb37fdfc7f..220bb45741b 100644 --- a/qa/qa/runtime/browser.rb +++ b/qa/qa/runtime/browser.rb @@ -51,6 +51,9 @@ module QA driver.browser.save_screenshot(path) end + # Keep only the screenshots generated from the last failing test suite + Capybara::Screenshot.prune_strategy = :keep_last_run + Capybara.configure do |config| config.default_driver = :chrome config.javascript_driver = :chrome |