diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-13 18:09:00 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-13 18:09:00 +0000 |
commit | e4dffdfe364af6c72dcb6b4671cb39a24e8e100c (patch) | |
tree | 6428a1c3472b14396645dcb280b219dbc0420c66 /qa/qa/specs | |
parent | 0ab47b994caa80c5587f33dc818626b66cfdafe2 (diff) | |
download | gitlab-ce-e4dffdfe364af6c72dcb6b4671cb39a24e8e100c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/specs')
-rw-r--r-- | qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb index c036f188ea2..98c42f5803d 100644 --- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb +++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb @@ -68,12 +68,20 @@ module QA Page::Project::Menu.perform(&:click_ci_cd_pipelines) Page::Project::Pipeline::Index.perform(&:click_on_latest_pipeline) - Page::Project::Pipeline::Show.perform do |pipeline| - expect(pipeline).to be_running(wait: max_wait) - expect(pipeline).to have_build('test-success', status: :success, wait: max_wait) - expect(pipeline).to have_build('test-failure', status: :failed, wait: max_wait) - expect(pipeline).to have_build('test-tags', status: :pending, wait: max_wait) - expect(pipeline).to have_build('test-artifacts', status: :success, wait: max_wait) + { + 'test-success': :passed, + 'test-failure': :failed, + 'test-tags': :pending, + 'test-artifacts': :passed + }.each do |job, status| + Page::Project::Pipeline::Show.perform do |pipeline| + pipeline.click_job(job) + end + + Page::Project::Job::Show.perform do |show| + expect(show).to public_send("be_#{status}") + show.click_element(:pipeline_path, Page::Project::Pipeline::Show) + end end end end |