We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9efad2 commit 44a878eCopy full SHA for 44a878e
spec/support/capybara_screenshot.rb
@@ -9,6 +9,9 @@
9
# RSpec 3 no longer defines `example`, but passes the example as block argument instead
10
example = config.respond_to?(:expose_current_running_example_as) ? example_from_block_arg : self.example
11
12
+ if example.exception && ENV['CI']
13
+ puts page.html
14
+ end
15
Capybara::Screenshot::RSpec.after_failed_example(example)
16
end
17
0 commit comments