Commit 890ad4e5 authored by Stan Hu's avatar Stan Hu

Merge branch 'mo-fix-capybara-screenshots-rails' into 'master'

Fix capybara screenshots for rails

See merge request gitlab-org/gitlab!27002
parents 92883b50 afbbacdb
---
title: Fix capybara screenshots path name for rails configuration
merge_request: 27002
author:
type: fixed
......@@ -82,7 +82,7 @@ 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])
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment