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'
|
example_filename += '.html'
|
||||||
if RSpec.current_example.exception.present?
|
if RSpec.current_example.exception.present?
|
||||||
save_page(example_filename)
|
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
|
# remove the file if the test starts working again
|
||||||
else
|
else
|
||||||
File.unlink(example_filename) if File.exist?(example_filename)
|
File.unlink(example_filename) if File.exist?(example_filename)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue