You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to change the default screenshot default file name when using capybara-screenshot with minitest?
I'm using minitest and I have this file which contains spaces and colon. I should "clean" it to upload artifacts. I' ve tried to override it in my test_helper.rb with:
Capybara::Screenshot.register_filename_prefix_formatter(:rspec) do |example|
"screenshot_#{example.description.gsub(' ', '-').gsub(/^.*/spec//,'')}"
end
But nothing happens. Iḿ confused because it seems to me that capybara-screenshot is not working at all since the saved files still have /screenshots path besides /capybara path.
[Screenshot Image]: /home/julianaarrighi/code/xattering-backend/tmp/screenshots/failures_test_: when clicking the reset password email should allow to reset the AppUser's password. .png
Any ideas?
The text was updated successfully, but these errors were encountered:
Is there a way to change the default screenshot default file name when using capybara-screenshot with minitest?
I'm using minitest and I have this file which contains spaces and colon. I should "clean" it to upload artifacts. I' ve tried to override it in my test_helper.rb with:
Capybara::Screenshot.register_filename_prefix_formatter(:rspec) do |example|
"screenshot_#{example.description.gsub(' ', '-').gsub(/^.*/spec//,'')}"
end
But nothing happens. Iḿ confused because it seems to me that capybara-screenshot is not working at all since the saved files still have /screenshots path besides /capybara path.
[Screenshot Image]: /home/julianaarrighi/code/xattering-backend/tmp/screenshots/failures_test_: when clicking the reset password email should allow to reset the AppUser's password. .png
Any ideas?
The text was updated successfully, but these errors were encountered: