diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-11 03:09:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-11 03:09:31 +0000 |
commit | 3a52deac114dda8a1ee0da597c148b0dfc5dcf35 (patch) | |
tree | 00a3853dd1775293eec5089b36b324967dccf2b7 /spec/support | |
parent | 47ebeef9122af96dc1fcd5c8e1ca0091f62fa113 (diff) | |
download | gitlab-ce-3a52deac114dda8a1ee0da597c148b0dfc5dcf35.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/capybara.rb | 5 |
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 |