summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2018-06-07 11:01:33 -0700
committerDJ Mountney <david@twkie.net>2018-06-07 11:01:33 -0700
commit19ac6badbf9484aa488cf9c15453c030a185104e (patch)
tree5b9084e491fbd8a8442d4639b73fa72f8c0ca014
parente114c6fcccef929f955ce25556d71456c2b05930 (diff)
downloadgitlab-ce-19ac6badbf9484aa488cf9c15453c030a185104e.tar.gz
Update QA deploy key clone test to wait for job traces
Otherwise if the completion status loaded before the trace, the test will fail.
-rw-r--r--qa/qa/specs/features/project/deploy_key_clone_spec.rb4
1 files changed, 3 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 442ac312b4d..2fa5c3a1a4c 100644
--- a/qa/qa/specs/features/project/deploy_key_clone_spec.rb
+++ b/qa/qa/specs/features/project/deploy_key_clone_spec.rb
@@ -92,7 +92,9 @@ module QA
Page::Project::Pipeline::Show.act { go_to_first_job }
Page::Project::Job::Show.perform do |job|
- job.wait(reload: false) { job.completed? }
+ job.wait(reload: false) do
+ job.completed? && !job.has_css?('.js-build-refresh')
+ end
expect(job.passed?).to be_truthy, "Job status did not become \"passed\"."
expect(job.output).to include(sha1sum)