From e9127f7aa082986952ffcc8331b675a3a99c3a83 Mon Sep 17 00:00:00 2001 From: eileencodes Date: Sun, 2 Oct 2016 15:22:27 -0400 Subject: Add support for screenshots This change adds support, tests, and documentation for the screenshot helper. If taking screenshots is supported by the driver (for example Rack Test doesn't support screenshots) then a screenshot will be taken if the test fails. --- actionpack/lib/system_testing/test_helpers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/system_testing/test_helpers.rb') diff --git a/actionpack/lib/system_testing/test_helpers.rb b/actionpack/lib/system_testing/test_helpers.rb index 074a45d5c8..3c528a6953 100644 --- a/actionpack/lib/system_testing/test_helpers.rb +++ b/actionpack/lib/system_testing/test_helpers.rb @@ -2,7 +2,8 @@ module SystemTesting module TestHelpers extend ActiveSupport::Autoload - autoload :FormHelper autoload :Assertions + autoload :FormHelper + autoload :ScreenshotHelper end end -- cgit v1.2.3