Failure in qa/specs/features/ee/browser_ui/10_govern/scan_result_policy_vulnerabilities_spec.rb:73
Summary
Failing job(s): https://ops.gitlab.net/gitlab-org/quality/staging-ref/-/jobs/10991513
qa/specs/features/ee/browser_ui/10_govern/scan_result_policy_vulnerabilities_spec.rb:73 consistently fails on staging since https://ops.gitlab.net/gitlab-org/quality/staging-ref/-/pipelines/2240464
If checking failed MR - https://staging-ref.gitlab.com/gitlab-qa-sandbox-group-4/qa-test-2023-08-23-12-47-06-3619fe7098a33a49/project-with-scan-result-policy-435d13bbd764115e/-/merge_requests/1 - it indeed doesn't have Approve button and states that Approval is optional
Stack trace
Failures:
1) Govern Scan result policy requires approval when a pipeline report has findings matching the scan result policy
Failure/Error: expect(mr.approvals_required_from).to include(scan_result_policy_name)
Capybara::ElementNotFound:
Unable to find css "[data-testid=\"approvals_summary_content\"],[data-qa-selector=\"approvals_summary_content\"]"
# ./qa/page/base.rb:146:in `find_element'
# ./qa/support/page/logging.rb:39:in `block in find_element'
# ./qa/support/page/logging.rb:206:in `log_slow_code'
# ./qa/support/page/logging.rb:39:in `find_element'
# ./qa/ee/page/merge_request/show.rb:269:in `block in approvals_content'
# ./qa/page/base.rb:82:in `block in wait_until'
# ./qa/support/waiter.rb:29:in `block in wait_until'
# ./qa/support/repeater.rb:46:in `repeat_until'
# ./qa/support/waiter.rb:20:in `wait_until'
# ./qa/page/base.rb:76:in `wait_until'
# ./qa/ee/page/merge_request/show.rb:268:in `approvals_content'
# ./qa/ee/page/merge_request/show.rb:87:in `approvals_required_from'
# ./qa/specs/features/ee/browser_ui/10_govern/scan_result_policy_vulnerabilities_spec.rb:100:in `block (4 levels) in <module:QA>'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/specs/features/ee/browser_ui/10_govern/scan_result_policy_vulnerabilities_spec.rb:98:in `block (3 levels) in <module:QA>'
# ./qa/specs/spec_helper.rb:134:in `block (2 levels) in <top (required)>'
# /home/gitlab/spec/support/fast_quarantine.rb:22:in `block (2 levels) in <top (required)>'
# ./qa/specs/knapsack_runner.rb:17:in `run'
# ./qa/specs/runner.rb:57:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/template.rb:50:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
/builds/gitlab-org/quality/staging-ref/.gems/bin/gitlab-qa: Command `docker run -t --rm --net=bridge --env QA_CAN_TEST_GIT_PROTOCOL_V2="$QA_CAN_TEST_GIT_PROTOCOL_V2" ...` failed! \e[31m✘\e[0m (Gitlab::QA::Support::ShellCommand::StatusError)
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/bootable.rb:52:in `launch!'
Finished in 8 minutes 29 seconds (files took 2.64 seconds to load)
Screenshot / HTML page
Possible fixes
Edited by Nailia Iskhakova
