Commit 3619ce04 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Resolve GitLab QA cold boot problems on entry page

parent abb5f765
require 'timeout'
module QA module QA
module Page module Page
module Main module Main
...@@ -5,8 +7,15 @@ module QA ...@@ -5,8 +7,15 @@ module QA
def initialize def initialize
visit('/') visit('/')
# This resolves cold boot problems with login page # This resolves cold boot / post-deployment migrations running
find('.application', wait: 120) # problems.
#
Timeout.timeout(240) do
loop do
break if page.has_css?('.application', wait: 10)
refresh
end
end
end end
def sign_in_using_credentials def sign_in_using_credentials
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment