diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-03-14 21:06:02 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-03-29 19:40:32 +0800 |
commit | b1625d39f5b6e37ccccd0c996dd2db2f7f37730d (patch) | |
tree | bc7395c5c5dea15edf48b6798c2230573e7c73cd /qa | |
parent | 94aa0b16f91e1ef239d3711f018313f3edbfc800 (diff) | |
download | gitlab-ce-b1625d39f5b6e37ccccd0c996dd2db2f7f37730d.tar.gz |
Make sure the job is not still running
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/features/project/deploy_key_clone_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qa/qa/specs/features/project/deploy_key_clone_spec.rb b/qa/qa/specs/features/project/deploy_key_clone_spec.rb index c5428fee0d5..3465fe109ee 100644 --- a/qa/qa/specs/features/project/deploy_key_clone_spec.rb +++ b/qa/qa/specs/features/project/deploy_key_clone_spec.rb @@ -82,7 +82,14 @@ module QA Page::Project::Show.act { wait_for_push } Page::Menu::Side.act { click_ci_cd_pipelines } Page::Project::Pipeline::Index.act { go_to_latest_pipeline } - Page::Project::Pipeline::Show.act { go_to_first_job } + + Page::Project::Pipeline::Show.act do + go_to_first_job + + wait do + !has_content?('running') + end + end Page::Project::Job::Show.perform do |job| expect(job.output).to include(sha1sum) |