diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-28 09:59:02 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-28 10:06:21 +0900 |
commit | 3da239a2cd43d04c5f972fa8f8e57e64a139194c (patch) | |
tree | edfb918f1978b7c80508283b5ed416065db7fc8c | |
parent | 4cc1c14493e7a9bd188ee13c237366f6bc2e13f4 (diff) | |
download | rails-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.rb | 2 |
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 |