Commit ac0dba6d authored by Robert Speicher's avatar Robert Speicher
Browse files

Only keep screenshots from last run for QA specs

parent 95f5a525
...@@ -51,6 +51,9 @@ def self.configure! ...@@ -51,6 +51,9 @@ def self.configure!
driver.browser.save_screenshot(path) driver.browser.save_screenshot(path)
end end
# Keep only the screenshots generated from the last failing test suite
Capybara::Screenshot.prune_strategy = :keep_last_run
Capybara.configure do |config| Capybara.configure do |config|
config.default_driver = :chrome config.default_driver = :chrome
config.javascript_driver = :chrome config.javascript_driver = :chrome
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment