summaryrefslogtreecommitdiff
path: root/spec/support/capybara.rb
diff options
context:
space:
mode:
authorddavison <ddavison@gitlab.com>2019-06-05 12:00:05 -0700
committerddavison <ddavison@gitlab.com>2019-06-05 12:17:37 -0700
commit7691bde418ba3a868d132fd36d9a567dce240a45 (patch)
treea2ef824911a6c5949554271d6fec9b9f5e79cf53 /spec/support/capybara.rb
parent92b06c13bd12abf85f6beb18b3b5c2f0e38c2760 (diff)
downloadgitlab-ce-qa-update-capybara.tar.gz
Upgrade capybara to version 3.22.0update-capybaraqa-update-capybara
Version 2 is almost a year old Dont take screenshots on failure
Diffstat (limited to 'spec/support/capybara.rb')
-rw-r--r--spec/support/capybara.rb3
1 files changed, 3 insertions, 0 deletions
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