diff options
author | Marin Jankovski <marin@gitlab.com> | 2018-06-14 12:17:05 +0000 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2018-06-14 12:17:05 +0000 |
commit | 99dfb12a912c5d38074a5c352d5ff76781e6f2cc (patch) | |
tree | 6d940b48d452b9c9a032a12556b24f6be4ea437e /qa/qa/runtime/browser.rb | |
parent | 716595a26dd2c7ddcb595dfba0002b44d9d50bba (diff) | |
parent | fec8bb5100e1a7c61dacb6095379fce0ac196210 (diff) | |
download | gitlab-ce-99dfb12a912c5d38074a5c352d5ff76781e6f2cc.tar.gz |
Merge branch '11-0-stable-prepare-rc12' into '11-0-stable'
Prepare 11.0 RC12 release
See merge request gitlab-org/gitlab-ce!19838
Diffstat (limited to 'qa/qa/runtime/browser.rb')
-rw-r--r-- | qa/qa/runtime/browser.rb | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb index a12d95683af..ecd273c6db8 100644 --- a/qa/qa/runtime/browser.rb +++ b/qa/qa/runtime/browser.rb @@ -102,19 +102,7 @@ module QA def perform(&block) visit(url) - yield if block_given? - rescue - raise if block.nil? - - # RSpec examples will take care of screenshots on their own - # - unless block.binding.receiver.is_a?(RSpec::Core::ExampleGroup) - screenshot_and_save_page - end - - raise - ensure - clear! if block_given? + yield.tap { clear! } if block_given? end ## |