diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-03 03:09:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-03 03:09:49 +0300 |
commit | d7940ee9f8b94e68cb8c56730b65a47b85e622b2 (patch) | |
tree | 508cb9b26126f4e3124e9ce08cd4a4c0a5c88a3e /spec/support/capybara.rb | |
parent | e2191b0a18b1fc6b7a70c60cdc31277883095742 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/capybara.rb')
-rw-r--r-- | spec/support/capybara.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index e751c060145..f9a28c8e40b 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -177,6 +177,7 @@ RSpec.configure do |config| config.append_after do |example| if example.metadata[:screenshot] screenshot = example.metadata[:screenshot][:image] || example.metadata[:screenshot][:html] + screenshot&.delete_prefix!(ENV.fetch('CI_PROJECT_DIR', '')) example.metadata[:stdout] = %{[[ATTACHMENT|#{screenshot}]]} end end |