Commit f363da8a authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-mr-license-report-wait-for-pipeline' into 'master'

Wait for pipeline to pass and for the license report in E2E spec

See merge request gitlab-org/gitlab!65159
parents d50ae078 f9b64baf
......@@ -78,7 +78,7 @@ module QA
end
def wait_for_license_compliance_report
has_no_text?('Loading License Compliance report', wait: QA::Support::Repeater::DEFAULT_MAX_WAIT_TIME)
has_text?('License Compliance detected', wait: QA::Support::Repeater::DEFAULT_MAX_WAIT_TIME)
end
def approvals_required_from
......
......@@ -101,7 +101,11 @@ module QA
@merge_request.visit!
Page::MergeRequest::Show.perform do |show|
show.wait_for_license_compliance_report
# Give time for the runner to complete pipeline
show.has_pipeline_status?('passed')
Support::Retrier.retry_until(max_attempts: 5, sleep_interval: 5) do
show.wait_for_license_compliance_report
end
show.click_manage_licenses_button
end
......
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