Commit fd160a2c authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-staging-87-fix-create_merge_request_with_secure_spec' into 'master'

Fix create_merge_request_with_secure_spec

Closes #32634

See merge request gitlab-org/gitlab!17576
parents 5106d5af fe981ffa
......@@ -138,23 +138,23 @@ module QA
def has_total_vulnerability_count_of?(expected)
# Match text cut off in order to find both "1 vulnerability" and "X vulnerabilities"
find_element(:vulnerability_report_grouped).has_content?("Security scanning detected #{expected} vulnerabilit")
find_element(:vulnerability_report_grouped).has_content?(/Security scanning detected #{expected}( new)? vulnerabilit/)
end
def has_sast_vulnerability_count_of?(expected)
find_element(:sast_scan_report).has_content?("SAST detected #{expected} vulnerabilit")
find_element(:sast_scan_report).has_content?(/SAST detected #{expected}( new)? vulnerabilit/)
end
def has_dependency_vulnerability_count_of?(expected)
find_element(:dependency_scan_report).has_content?("Dependency scanning detected #{expected} vulnerabilit")
find_element(:dependency_scan_report).has_content?(/Dependency scanning detected #{expected}( new)? vulnerabilit/)
end
def has_container_vulnerability_count_of?(expected)
find_element(:container_scan_report).has_content?("Container scanning detected #{expected} vulnerabilit")
find_element(:container_scan_report).has_content?(/Container scanning detected #{expected}( new)? vulnerabilit/)
end
def has_dast_vulnerability_count_of?(expected)
find_element(:dast_scan_report).has_content?("DAST detected #{expected} vulnerabilit")
find_element(:dast_scan_report).has_content?(/DAST detected #{expected}( new)? vulnerabilit/)
end
def num_approvals_required
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment