diff options
Diffstat (limited to 'qa/qa/specs/spec_helper.rb')
-rw-r--r-- | qa/qa/specs/spec_helper.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qa/qa/specs/spec_helper.rb b/qa/qa/specs/spec_helper.rb index a4721040683..003e8aa74c1 100644 --- a/qa/qa/specs/spec_helper.rb +++ b/qa/qa/specs/spec_helper.rb @@ -52,12 +52,10 @@ RSpec.configure do |config| end config.prepend_after do |example| - if example.exception - page = Capybara.page + page = Capybara.page + QA::Support::PageErrorChecker.log_request_errors(page) - QA::Support::PageErrorChecker.log_request_errors(page) - QA::Support::PageErrorChecker.check_page_for_error_code(page) - end + QA::Support::PageErrorChecker.check_page_for_error_code(page) if example.exception end # Add fabrication time to spec metadata |