Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2018-05-03 20:34:42 +0300
committerMichael Kozono <mkozono@gmail.com>2018-06-08 19:05:06 +0300
commit700e15a8e79fbb9d53b1a2bf803135a3dfa637ce (patch)
tree03ddb9b84ba4a3af5ee73f3d60dc4a54c9d06ece /qa
parentbe806549cad030df4a081acc748bd703d140ff9d (diff)
Remove arbitrary 5 second wait
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/factory/resource/branch.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/qa/factory/resource/branch.rb b/qa/qa/factory/resource/branch.rb
index 1785441f5a8..f273df98bd3 100644
--- a/qa/qa/factory/resource/branch.rb
+++ b/qa/qa/factory/resource/branch.rb
@@ -46,7 +46,9 @@ module QA
resource.remote_branch = @branch_name
end
- Page::Project::Show.act { wait_for_push }
+ Page::Project::Show.perform do |page|
+ page.wait { page.has_content?(branch_name) }
+ end
# The upcoming process will make it access the Protected Branches page,
# select the already created branch and protect it according