aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-02-28 09:59:02 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-02-28 10:06:21 +0900
commit3da239a2cd43d04c5f972fa8f8e57e64a139194c (patch)
treeedfb918f1978b7c80508283b5ed416065db7fc8c
parent4cc1c14493e7a9bd188ee13c237366f6bc2e13f4 (diff)
downloadrails-3da239a2cd43d04c5f972fa8f8e57e64a139194c.tar.gz
rails-3da239a2cd43d04c5f972fa8f8e57e64a139194c.tar.bz2
rails-3da239a2cd43d04c5f972fa8f8e57e64a139194c.zip
Take failed screenshot before reset driver
Now reset the driver before take failed screenshot since #28144. However, I think that failed screenshot should be take with the driver actually used in the test. So, fixed to take screenshot before reset driver.
-rw-r--r--actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb b/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
index 491559eedf..1c89bfacfa 100644
--- a/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
+++ b/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
@@ -10,8 +10,8 @@ module ActionDispatch
end
def after_teardown
- super
take_failed_screenshot
+ super
Capybara.reset_sessions!
end
end