From 84bc4bf3d5fda8f2022bb10ace694911b3c90a0e Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 22 Dec 2022 16:47:33 +0000 Subject: [PATCH] DEV: Do not print verbose `console.debug` messages in system specs (#19581) Verbose messages are not shown by default in the chrome dev console. This commit applies the same behavior to system specs. The main motivation here is to hide the version info which Ember prints every time the application boots. ```text http://localhost:31337/assets/vendor.js 47142:16 "DEBUG: -------------------------------" http://localhost:31337/assets/vendor.js 47142:16 "DEBUG: Ember : 3.28.11" http://localhost:31337/assets/vendor.js 47142:16 "DEBUG: jQuery : 3.6.0" http://localhost:31337/assets/vendor.js 47142:16 "DEBUG: -------------------------------" ``` --- spec/rails_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 531d965ed1e..daa3ac9b868 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -251,7 +251,7 @@ RSpec.configure do |config| end chrome_browser_options = Selenium::WebDriver::Chrome::Options.new( - logging_prefs: { "browser" => "ALL", "driver" => "ALL" } + logging_prefs: { "browser" => "INFO", "driver" => "ALL" } ).tap do |options| options.add_argument("--window-size=1400,1400") options.add_argument("--no-sandbox") @@ -279,7 +279,7 @@ RSpec.configure do |config| mobile_chrome_browser_options = Selenium::WebDriver::Chrome::Options - .new(logging_prefs: { "browser" => "ALL", "driver" => "ALL" }) + .new(logging_prefs: { "browser" => "INFO", "driver" => "ALL" }) .tap do |options| options.add_argument("--window-size=390,950") options.add_argument("--no-sandbox")