Skip to content
代码片段 群组 项目
未验证 提交 c75f3e85 编辑于 作者: Harsha Muralidhar's avatar Harsha Muralidhar 提交者: GitLab
浏览文件

Add wait for pipeline success to stabilise vulnerability spec

上级 75c685d4
No related branches found
No related tags found
无相关合并请求
......@@ -72,6 +72,9 @@ module QA
it 'checks resolve vulnerability with MR AI feature', :aggregate_failures,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/482996' do
commit_test_sast_reports
Flow::Pipeline.wait_for_pipeline_creation_via_api(project: project)
expect { project.latest_pipeline[:status] }.to eventually_eq('success').within(max_duration: 90)
resolve_this_vulnerability(vuln_name)
QA::Support::Retrier.retry_on_exception(max_attempts: 10, sleep_interval: 1,
......@@ -91,7 +94,6 @@ module QA
def resolve_this_vulnerability(vulnerability_name)
Page::Project::Menu.perform(&:go_to_vulnerability_report)
EE::Page::Project::Secure::SecurityDashboard.perform do |security_dashboard|
security_dashboard.wait_for_vuln_report_to_load
security_dashboard.click_vulnerability(description: vulnerability_name)
end
EE::Page::Project::Secure::VulnerabilityDetails.perform(&:resolve_this_vulnerability)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册