diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-02-14 12:06:39 -0500 |
---|---|---|
committer | Mark Lapierre <mlapierre@gitlab.com> | 2019-02-14 12:06:39 -0500 |
commit | e5e57df61ccda241e23bd4f67fe9022cec6c8c57 (patch) | |
tree | 60303e00c0b23d66c6582525fb520dba15ca409e /qa/spec | |
parent | bbd0a2ce91f2d43350382c7ce83729f33c39c125 (diff) | |
download | gitlab-ce-e5e57df61ccda241e23bd4f67fe9022cec6c8c57.tar.gz |
Move server responding check to scenario before hook
This checks that the server is responding before any other actions,
including before trying to add a license.
Diffstat (limited to 'qa/spec')
-rw-r--r-- | qa/spec/spec_helper.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/qa/spec/spec_helper.rb b/qa/spec/spec_helper.rb index f1b4203d422..20a153f3f63 100644 --- a/qa/spec/spec_helper.rb +++ b/qa/spec/spec_helper.rb @@ -5,20 +5,6 @@ require_relative '../qa' end RSpec.configure do |config| - ServerNotRespondingError = Class.new(RuntimeError) - - # 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 at the beginning of the suite. - config.before(:suite) do - if QA::Runtime::Scenario.respond_to?(:gitlab_address) - QA::Runtime::Browser.visit(:gitlab, QA::Page::Main::Login) - - unless QA::Page::Main::Login.perform(&:page_loaded?) - raise ServerNotRespondingError, "Login page did not load at #{QA::Page::Main::Login.perform(&:current_url)}" - end - end - end - config.before(:context) do if self.class.metadata.keys.include?(:quarantine) skip_or_run_quarantined_tests(self.class.metadata.keys, config.inclusion_filter.rules.keys) |