diff options
author | Tom Fakes <tom@mysteryscience.com> | 2019-06-23 19:41:30 -0700 |
---|---|---|
committer | Tom Fakes <tom@mysteryscience.com> | 2019-06-25 21:04:30 -0700 |
commit | c699a877ca39951ba29cb8f9785f4a3909784f44 (patch) | |
tree | be1d6632d2d673f8352e0bb492b30bf8c3cb9a0b /activestorage/lib/active_storage/engine.rb | |
parent | f6db8b8d8286730757570a8b0f92e6b6be779fa8 (diff) | |
download | rails-c699a877ca39951ba29cb8f9785f4a3909784f44.tar.gz rails-c699a877ca39951ba29cb8f9785f4a3909784f44.tar.bz2 rails-c699a877ca39951ba29cb8f9785f4a3909784f44.zip |
Add code to save the HTML of the page being screenshotted during the `take_screenshot` method
that is enabled by a new environment variable - RAILS_SYSTEM_TESTING_SCREENSHOT_HTML=1
Add the ability to call `take_screenshot` more than once in a single test by prefixing the name of
the image file with a counter that is incremented on every `take_screenshot` call. This allows a
developer to see their pages in sequence when trying to debug test errors. This does not affect
the failure case where the prefix remains 'failures'
Diffstat (limited to 'activestorage/lib/active_storage/engine.rb')
0 files changed, 0 insertions, 0 deletions