summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-11 03:09:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-11 03:09:31 +0000
commit3a52deac114dda8a1ee0da597c148b0dfc5dcf35 (patch)
tree00a3853dd1775293eec5089b36b324967dccf2b7 /spec/support
parent47ebeef9122af96dc1fcd5c8e1ca0091f62fa113 (diff)
downloadgitlab-ce-3a52deac114dda8a1ee0da597c148b0dfc5dcf35.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/capybara.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb
index ca4a81773aa..9ac7d0df737 100644
--- a/spec/support/capybara.rb
+++ b/spec/support/capybara.rb
@@ -79,6 +79,11 @@ Capybara.ignore_hidden_elements = true
Capybara.default_normalize_ws = true
Capybara.enable_aria_label = true
+Capybara::Screenshot.append_timestamp = false
+
+Capybara::Screenshot.register_filename_prefix_formatter(:rspec) do |example|
+ ::File.join(QA::Runtime::Namespace.name, example.full_description.downcase.parameterize(separator: "_")[0..99])
+end
# 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