Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-02-14 20:06:39 +0300
committerMark Lapierre <mlapierre@gitlab.com>2019-02-14 20:06:39 +0300
commite5e57df61ccda241e23bd4f67fe9022cec6c8c57 (patch)
tree60303e00c0b23d66c6582525fb520dba15ca409e /qa/spec/spec_helper.rb
parentbbd0a2ce91f2d43350382c7ce83729f33c39c125 (diff)
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/spec_helper.rb')
-rw-r--r--qa/spec/spec_helper.rb14
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)