How can I see what capybara found in a failing cucumber step?
Solution 1:
Then show me the page
calls webrat/capybara's underlying save_and_open_page
method. Found that useful when working with steak.
Solution 2:
Try adding this step:
Then show me the page
Solution 3:
If you want to have the browser open the page when the page fails you use the 'launchy' gem. Add it to your gem file, and then in /features/support create a file called debugging.rb with contents:
After do |scenario|
save_and_open_page if scenario.failed?
end