Commit a196f4df authored by Will Meek's avatar Will Meek Committed by Sanad Liaquat

Unquarantine first_class_project_security_dashboard_spec end to end test

Rename first_class_project_security_dashboard spec

As per discussion and issue
https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/593
Rename first_class_project_security_dashboard_spec

Add a retry for the pipeline

Add a retry to allow the pipeline to execute
on a runner, particularly on busy envs
such as staging
parent 3a75f033
# frozen_string_literal: true
module QA
RSpec.describe 'Secure', :docker, :runner, quarantine: { type: :investigating } do
RSpec.describe 'Secure', :docker, :runner do
describe 'Security Dashboard in a Project' do
let(:vulnerability_name) { "CVE-2017-18269 in glibc" }
let(:vulnerability_description) { "Short description to match in specs" }
......@@ -45,6 +45,10 @@ module QA
@merge_request.visit!
Page::MergeRequest::Show.perform do |merge_request|
# Give time for the runner on Staging to complete pipeline
Support::Retrier.retry_until(max_attempts: 5, sleep_interval: 5, reload_page: merge_request) do
merge_request.has_pipeline_status?(/Pipeline #\d+ passed/)
end
merge_request.merge!
end
Page::Project::Menu.perform(&:click_ci_cd_pipelines)
......@@ -57,8 +61,9 @@ module QA
it 'shows vulnerability details' do
@project.visit!
Page::Project::Menu.perform(&:click_on_security_dashboard)
Support::Retrier.retry_on_exception do
Page::Project::Menu.perform(&:click_on_security_dashboard)
end
EE::Page::Project::Secure::SecurityDashboard.perform do |security_dashboard|
expect(security_dashboard).to have_vulnerability(description: vulnerability_name)
......
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