mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Merge pull request #5889 from Matt-Yorkley/suppress-selenium-warings
Suppress Selenium warnings in test log output.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user