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: -------------------------------"
```
This commit is contained in:
David Taylor
2022-12-22 16:47:33 +00:00
committed by GitHub
parent b1b53da71d
commit 84bc4bf3d5

View File

@ -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")