A platform for community discussion. Free, open, simple.
DEV: Add PLAYWRIGHT_DEVTOOLS env var to automatically show devtools in chrome (#42973)
Martin Brennan6c296e05ff0d
diff --git a/spec/support/system/driver.rb b/spec/support/system/driver.rbindex d73107a13c4..10db6a20f50 100644--- a/spec/support/system/driver.rb+++ b/spec/support/system/driver.rb@@ -116,6 +116,10 @@ module SystemDrivers--disable-smooth-scrolling]+ if ENV["PLAYWRIGHT_DEVTOOLS"].presence == "1" || ENV["SELENIUM_DEVTOOLS"].presence == "1"+ base_args << "--auto-open-devtools-for-tabs"+ end+if !ENV["CI"]base_args << "--remote-debugging-port=" + CHROME_REMOTE_DEBUGGING_PORTbase_args << "--remote-debugging-address=" + CHROME_REMOTE_DEBUGGING_ADDRESS