Commit f36f6a77 authored by Mark Lapierre's avatar Mark Lapierre

Update QA EE strategy

Don't skip the login page check even if we have a license. We still
need to check that the page has loaded and fail early if it hasn't.
parent d59aa8da
......@@ -8,16 +8,15 @@ module QA
end
def perform_before_hooks
return unless ENV['EE_LICENSE']
QA::Runtime::Browser.visit(:gitlab, QA::Page::Main::Login) do
# The login page could take some time to load the first time it is visited.
# We visit the login page and wait for it to properly load only once before the tests.
QA::Runtime::Browser.visit(:gitlab, QA::Page::Main::Login)
QA::Page::Main::Login.perform(&:assert_page_loaded)
return unless ENV['EE_LICENSE']
EE::Resource::License.fabricate!(ENV['EE_LICENSE'])
end
end
end
end
end
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