Commit 0c544d0c authored by Dan Davison's avatar Dan Davison

Merge branch 'qa-e2e-fix-secure-build-trace' into 'master'

Fix Secure tests using old build trace element

Closes #118429

See merge request gitlab-org/gitlab!21858
parents 830a518c 7fc93edf
...@@ -23,10 +23,6 @@ module QA ...@@ -23,10 +23,6 @@ module QA
before do before do
@executor = "qa-runner-#{Time.now.to_i}" @executor = "qa-runner-#{Time.now.to_i}"
# Handle WIP Job Logs flag - https://gitlab.com/gitlab-org/gitlab/issues/31162
@job_log_json_flag_enabled = Runtime::Feature.enabled?('job_log_json')
Runtime::Feature.disable('job_log_json') if @job_log_json_flag_enabled
Flow::Login.sign_in Flow::Login.sign_in
@project = Resource::Project.fabricate_via_api! do |p| @project = Resource::Project.fabricate_via_api! do |p|
...@@ -63,8 +59,7 @@ module QA ...@@ -63,8 +59,7 @@ module QA
@project.visit! @project.visit!
Page::Project::Menu.perform(&:click_ci_cd_pipelines) Page::Project::Menu.perform(&:click_ci_cd_pipelines)
Page::Project::Pipeline::Index.perform(&:click_on_latest_pipeline) Page::Project::Pipeline::Index.perform(&:wait_for_latest_pipeline_success)
wait_for_job "dast"
merge_request.visit! merge_request.visit!
end end
...@@ -115,15 +110,6 @@ module QA ...@@ -115,15 +110,6 @@ module QA
expect(merge_request).to have_title remediable_vuln_name expect(merge_request).to have_title remediable_vuln_name
end end
end end
def wait_for_job(job_name)
Page::Project::Pipeline::Show.perform do |pipeline|
pipeline.click_job(job_name)
end
Page::Project::Job::Show.perform do |job|
expect(job).to be_successful(timeout: 600)
end
end
end end
end end
end end
...@@ -48,10 +48,6 @@ module QA ...@@ -48,10 +48,6 @@ module QA
before do before do
@executor = "qa-runner-#{Time.now.to_i}" @executor = "qa-runner-#{Time.now.to_i}"
# Handle WIP Job Logs flag - https://gitlab.com/gitlab-org/gitlab/issues/31162
@job_log_json_flag_enabled = Runtime::Feature.enabled?('job_log_json')
Runtime::Feature.disable('job_log_json') if @job_log_json_flag_enabled
Flow::Login.sign_in Flow::Login.sign_in
@project = Resource::Project.fabricate_via_api! do |project| @project = Resource::Project.fabricate_via_api! do |project|
...@@ -82,9 +78,7 @@ module QA ...@@ -82,9 +78,7 @@ module QA
end end
Page::Project::Menu.perform(&:click_ci_cd_pipelines) Page::Project::Menu.perform(&:click_ci_cd_pipelines)
Page::Project::Pipeline::Index.perform(&:click_on_latest_pipeline) Page::Project::Pipeline::Index.perform(&:wait_for_latest_pipeline_success)
wait_for_job "license_management"
end end
it 'displays license approval status in the pipeline' do it 'displays license approval status in the pipeline' do
...@@ -100,14 +94,5 @@ module QA ...@@ -100,14 +94,5 @@ module QA
end end
end end
end end
def wait_for_job(job_name)
Page::Project::Pipeline::Show.perform do |pipeline|
pipeline.click_job(job_name)
end
Page::Project::Job::Show.perform do |job|
expect(job).to be_successful(timeout: 600)
end
end
end end
end end
...@@ -20,10 +20,6 @@ module QA ...@@ -20,10 +20,6 @@ module QA
before do before do
@executor = "qa-runner-#{Time.now.to_i}" @executor = "qa-runner-#{Time.now.to_i}"
# Handle WIP Job Logs flag - https://gitlab.com/gitlab-org/gitlab/issues/31162
@job_log_json_flag_enabled = Runtime::Feature.enabled?('job_log_json')
Runtime::Feature.disable('job_log_json') if @job_log_json_flag_enabled
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials) Page::Main::Login.perform(&:sign_in_using_credentials)
......
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