diff options
Diffstat (limited to 'spec/support/capybara.rb')
-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 |