Resolve GitLab QA cold boot problems on entry page

This commit is contained in:
Grzegorz Bizon 2017-03-16 14:18:00 +01:00
parent abb5f765c1
commit 3619ce044a
1 changed files with 11 additions and 2 deletions

View File

@ -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