Commit c976db76 authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'ml-perform-before-hooks-before-everything-else' into 'master'

Call `Runtime::Release.perform_before_hooks` in `config.before(:suite)`

Closes gitlab-org/quality/team-tasks#325

See merge request gitlab-org/gitlab!23481
parents bd3974dd be4af16c
......@@ -66,14 +66,23 @@ module QA
metadata[:type] = :feature
end
config.before do
config.before(:suite) do
unless browser.rspec_configured
browser.rspec_configured = true
##
# Perform before hooks, which are different for CE and EE
#
begin
Runtime::Release.perform_before_hooks
rescue
saved = Capybara::Screenshot.screenshot_and_save_page
QA::Runtime::Logger.error("Screenshot: #{saved[:image]}") if saved&.key?(:image)
QA::Runtime::Logger.error("HTML capture: #{saved[:html]}") if saved&.key?(:html)
raise
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