mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #2658 from AndrewKvalheim/save-screenshot
Fix bug in logging of screenshots of failed tests
This commit is contained in:
commit
fc61c4b39c
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ RSpec.configure do |config|
|
|||
example_filename += '.html'
|
||||
if RSpec.current_example.exception.present?
|
||||
save_page(example_filename)
|
||||
save_page(example_screenshotname)
|
||||
save_screenshot(example_screenshotname) # rubocop:disable Lint/Debugger
|
||||
# remove the file if the test starts working again
|
||||
else
|
||||
File.unlink(example_filename) if File.exist?(example_filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue