aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators.rb
diff options
context:
space:
mode:
authorTom Fakes <tom@mysteryscience.com>2019-06-23 19:41:30 -0700
committerTom Fakes <tom@mysteryscience.com>2019-06-25 21:04:30 -0700
commitc699a877ca39951ba29cb8f9785f4a3909784f44 (patch)
treebe1d6632d2d673f8352e0bb492b30bf8c3cb9a0b /railties/lib/rails/generators.rb
parentf6db8b8d8286730757570a8b0f92e6b6be779fa8 (diff)
downloadrails-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 'railties/lib/rails/generators.rb')
0 files changed, 0 insertions, 0 deletions