Skip to content

Commit

Permalink
Merge pull request #5657 from atulyadav745/fix-screenshot
Browse files Browse the repository at this point in the history
Fixed Capybara screenshot feature in broken tests
  • Loading branch information
ragesoss authored Feb 14, 2024
2 parents f367d0d + 81e1a39 commit 6aa0802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
# them.
# Instead, we clear and print any after-success error
# logs in the `before` block above.
Capybara::Screenshot.new.screenshot_and_save_page if example.exception
Capybara::Screenshot.screenshot_and_save_page if example.exception
errors = page.driver.browser.logs.get(:browser)

# pass `js_error_expected: true` to skip JS error checking
Expand Down

0 comments on commit 6aa0802

Please sign in to comment.