A platform for community discussion. Free, open, simple.
DEV: Fix `pause_test` devtools URLs when running in container (#35171)
David Taylor564f82b84f36
diff --git a/spec/support/system_helpers.rb b/spec/support/system_helpers.rbindex 04d257184fe..1d4cafc4f1a 100644--- a/spec/support/system_helpers.rb+++ b/spec/support/system_helpers.rb@@ -18,8 +18,7 @@ module SystemHelpersENV["SELENIUM_FORWARD_DEVTOOLS_TO_PORT"].presencesocat_pid =fork do- chrome_port = uri.port- exec "socat tcp-listen:#{exposed_port},reuseaddr,fork tcp:localhost:#{chrome_port}"+ exec "socat tcp-listen:#{exposed_port},reuseaddr,fork tcp:localhost:#{CHROME_REMOTE_DEBUGGING_PORT}"endend@@ -28,7 +27,7 @@ module SystemHelpers.each do |result|devtools_url = result["devtoolsFrontendUrl"]- devtools_url = devtools_url.gsub(":#{uri.port}", ":#{exposed_port}") if exposed_port+ devtools_url.gsub!(":#{CHROME_REMOTE_DEBUGGING_PORT}", ":#{exposed_port}") if exposed_portif ENV["CODESPACE_NAME"]devtools_url =