Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/spec/support/wait_for_requests_spec.rb')
-rw-r--r--qa/spec/support/wait_for_requests_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/qa/spec/support/wait_for_requests_spec.rb b/qa/spec/support/wait_for_requests_spec.rb
index 47c35addd9f..2492820b67f 100644
--- a/qa/spec/support/wait_for_requests_spec.rb
+++ b/qa/spec/support/wait_for_requests_spec.rb
@@ -22,5 +22,21 @@ RSpec.describe QA::Support::WaitForRequests do
subject.wait_for_requests(skip_finished_loading_check: true)
end
end
+
+ context 'when skip_resp_code_check is defaulted to false' do
+ it 'call report' do
+ allow(QA::Support::PageErrorChecker).to receive(:check_page_for_error_code).with(Capybara.page)
+
+ subject.wait_for_requests
+ end
+ end
+
+ context 'when skip_resp_code_check is true' do
+ it 'does not parse for an error code' do
+ expect(QA::Support::PageErrorChecker).not_to receive(:check_page_for_error_code)
+
+ subject.wait_for_requests(skip_resp_code_check: true)
+ end
+ end
end
end