Taking screenshots in Capybara
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest.
Requires Capybara-Webkit, Selenium or poltergeist for making screenshots. They're saved into
The attached files contain config for cucumber integration and a
Then show me a screenshot step.
Including assets for prettier presentation
Make sure to add this to
# Do not generate digests for assets URLs. config.assets.digest = false
# Have HTML screenshot render with assets (while `b rails s` is running) Capybara.asset_host = 'http://localhost:3000'