提交 ac0dba6d 编写于 作者: R Robert Speicher

Only keep screenshots from last run for QA specs

上级 95f5a525
...@@ -51,6 +51,9 @@ module QA ...@@ -51,6 +51,9 @@ module QA
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册