From 3300a17fdbbb74b815c51242bf6f8608a3ba426a Mon Sep 17 00:00:00 2001 From: ddavison Date: Wed, 5 Jun 2019 14:02:47 -0700 Subject: Dont save Screenshots automatically Its possible that the screenshots are either A] not able to be taken as the session is destroyed by capybara, or B] the space on the runners in question might be filling up tmp/capybara/ --- spec/support/capybara.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 875a9a76e12..7882417ee3a 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -54,6 +54,9 @@ Capybara.javascript_driver = :chrome Capybara.default_max_wait_time = timeout Capybara.ignore_hidden_elements = true +# Disable screenshots to be automatically taken when a test fails. +Capybara::Screenshot.autosave_on_failure = false + # Keep only the screenshots generated from the last failing test suite Capybara::Screenshot.prune_strategy = :keep_last_run # From https://github.com/mattheworiordan/capybara-screenshot/issues/84#issuecomment-41219326 -- cgit v1.2.3