From 7691bde418ba3a868d132fd36d9a567dce240a45 Mon Sep 17 00:00:00 2001 From: ddavison Date: Wed, 5 Jun 2019 12:00:05 -0700 Subject: Upgrade capybara to version 3.22.0 Version 2 is almost a year old Dont take screenshots on failure --- spec/support/capybara.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec/support') 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.1