summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-17 17:31:21 +0000
committerRémy Coutable <remy@rymai.me>2017-03-17 17:31:21 +0000
commitc1b4f800f3a0fb5cc5c5f7a121a499ba6ed128c1 (patch)
tree3bcea56890d4ac853ec5618a690d02a5fb1e68cd /qa
parent0e4f2e014bb0606275297180e09cc6c0d7e3eaa1 (diff)
parentcc887599990148cfd7db12353ed852723f63cafb (diff)
downloadgitlab-ce-c1b4f800f3a0fb5cc5c5f7a121a499ba6ed128c1.tar.gz
Merge branch 'fix/gb/gitlab-qa-start-page-cold-boot' into 'master'
Resolve GitLab QA cold boot problems on entry page See merge request !10003
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/main/entry.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/qa/qa/page/main/entry.rb b/qa/qa/page/main/entry.rb
index fe80deb6429..a9810beeb29 100644
--- a/qa/qa/page/main/entry.rb
+++ b/qa/qa/page/main/entry.rb
@@ -5,8 +5,14 @@ module QA
def initialize
visit('/')
- # This resolves cold boot problems with login page
- find('.application', wait: 120)
+ # This resolves cold boot / background tasks problems
+ #
+ start = Time.now
+
+ while Time.now - start < 240
+ break if page.has_css?('.application', wait: 10)
+ refresh
+ end
end
def sign_in_using_credentials