From 74252e9d135af219d5fcae3c2758c4f7edb75532 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 9 Aug 2020 14:02:07 +0100 Subject: [PATCH] Suppress Selenium warnings in test log output. --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9e42ff6191..e50b4ea4b7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -181,6 +181,10 @@ 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. + Selenium::WebDriver.logger.level = :error + # Profiling # # This code shouldn't be run in normal circumstances. But if you want to know