diff options
author | eileencodes <eileencodes@gmail.com> | 2017-02-10 09:13:48 -0500 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2017-02-20 15:07:34 -0500 |
commit | 893c3b6282bc87c1f07a1f4084de8ff6709917b1 (patch) | |
tree | 8b7827330171c01369a2272fc6b78ef940ba0898 /actionsystemtest/lib/action_system_test | |
parent | 3dfbe7e4e5057d56c636b8231e8d00a06a15796b (diff) | |
download | rails-893c3b6282bc87c1f07a1f4084de8ff6709917b1.tar.gz rails-893c3b6282bc87c1f07a1f4084de8ff6709917b1.tar.bz2 rails-893c3b6282bc87c1f07a1f4084de8ff6709917b1.zip |
Update documentation and guides
Update the documentation after rewriting a majority of the functionality
for system testing.
Diffstat (limited to 'actionsystemtest/lib/action_system_test')
-rw-r--r-- | actionsystemtest/lib/action_system_test/browser.rb | 2 | ||||
-rw-r--r-- | actionsystemtest/lib/action_system_test/test_helpers/screenshot_helper.rb | 13 |
2 files changed, 5 insertions, 10 deletions
diff --git a/actionsystemtest/lib/action_system_test/browser.rb b/actionsystemtest/lib/action_system_test/browser.rb index 09b72721c5..220d8b6807 100644 --- a/actionsystemtest/lib/action_system_test/browser.rb +++ b/actionsystemtest/lib/action_system_test/browser.rb @@ -1,5 +1,5 @@ module ActionSystemTest - class Browser + class Browser # :nodoc: def initialize(name, screen_size) @name = name @screen_size = screen_size diff --git a/actionsystemtest/lib/action_system_test/test_helpers/screenshot_helper.rb b/actionsystemtest/lib/action_system_test/test_helpers/screenshot_helper.rb index d4d0d79e95..af83ca3ec8 100644 --- a/actionsystemtest/lib/action_system_test/test_helpers/screenshot_helper.rb +++ b/actionsystemtest/lib/action_system_test/test_helpers/screenshot_helper.rb @@ -4,14 +4,9 @@ module ActionSystemTest module ScreenshotHelper # Takes a screenshot of the current page in the browser. # - # +take_screenshot+ can be used within your tests at points - # you want to take a screenshot if the driver supports screenshots. The - # Rack Test driver does not support screenshots. - # - # You can check if the driver supports screenshots by running - # - # ActionSystemTest.driver.supports_screenshots? - # => true + # +take_screenshot+ can be used at any point in your system tests to take + # a screenshot of the current state. This can be useful for debugging or + # automating visual testing. def take_screenshot save_image puts "[Screenshot]: #{image_path}" @@ -23,7 +18,7 @@ module ActionSystemTest # # +take_screenshot+ is included in <tt>system_test_helper.rb</tt> that is # generated with the application. To take screenshots when a test fails - # add +take_failed_screenshot+ to the teardown block before clearing any + # add +take_failed_screenshot+ to the teardown block before clearing # sessions. def take_failed_screenshot take_screenshot unless passed? |