method
take_failed_screenshot
v5.1.7 -
Show latest stable
- Class:
ActionDispatch::SystemTesting::TestHelpers::ScreenshotHelper
take_failed_screenshot()public
Takes a screenshot of the current page in the browser if the test failed.
take_failed_screenshot is included in application_system_test_case.rb that is generated with the application. To take screenshots when a test fails add take_failed_screenshot to the teardown block before clearing sessions.