diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-16 14:18:00 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-16 14:18:00 +0100 |
commit | 3619ce044a348308d7189377bcdb0ab7998432a2 (patch) | |
tree | 3adf4776844864630337c0a30da3258f0d5d5ec8 /qa | |
parent | abb5f765c1e1affe0e132c86811e356e4a7008c9 (diff) | |
download | gitlab-ce-3619ce044a348308d7189377bcdb0ab7998432a2.tar.gz |
Resolve GitLab QA cold boot problems on entry page
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/main/entry.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/qa/qa/page/main/entry.rb b/qa/qa/page/main/entry.rb index fe80deb6429..c5432f83593 100644 --- a/qa/qa/page/main/entry.rb +++ b/qa/qa/page/main/entry.rb @@ -1,3 +1,5 @@ +require 'timeout' + module QA module Page module Main @@ -5,8 +7,15 @@ module QA def initialize visit('/') - # This resolves cold boot problems with login page - find('.application', wait: 120) + # This resolves cold boot / post-deployment migrations running + # problems. + # + Timeout.timeout(240) do + loop do + break if page.has_css?('.application', wait: 10) + refresh + end + end end def sign_in_using_credentials |