summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-12-15 14:22:12 -0600
committerRobert Speicher <rspeicher@gmail.com>2017-12-15 14:22:12 -0600
commitac0dba6dd1cdd5a78c8a3bfd9adb6c9ae63489aa (patch)
treea949a3a4fdcf60f898ca92debff45365b11e7693
parent95f5a525b5a729725d6b559101026b8f39c9c39d (diff)
downloadgitlab-ce-qa/rs-screenshot-last-run.tar.gz
Only keep screenshots from last run for QA specsqa/rs-screenshot-last-run
-rw-r--r--qa/qa/runtime/browser.rb3
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