Merge pull request #5889 from Matt-Yorkley/suppress-selenium-warings

Suppress Selenium warnings in test log output.
This commit is contained in:
Maikel
2020-08-12 11:29:30 +10:00
committed by GitHub

View File

@@ -181,6 +181,16 @@ RSpec.configure do |config|
config.include JsonSpec::Helpers
# Suppress Selenium deprecation warnings. Stops a flood of pointless warnings filling the
# test output. We can remove this in the future after upgrading Rails, Rack, and Capybara.
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR == 0
Selenium::WebDriver.logger.level = :error
else
ActiveSupport::Deprecation.warn(
"Suppressing Selenium deprecation warnings is not needed any more."
)
end
# Profiling
#
# This code shouldn't be run in normal circumstances. But if you want to know