Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(dashboard): align omnibox scheme detection with Chrome (#40306)
Simon Knotteaffc1eef888
diff --git a/packages/dashboard/src/dashboard.tsx b/packages/dashboard/src/dashboard.tsxindex 2fa52d3eb5..41feefd7c3 100644--- a/packages/dashboard/src/dashboard.tsx+++ b/packages/dashboard/src/dashboard.tsx@@ -57,7 +57,9 @@ function smartUrl(input: string): string {const isLocalhost = /^localhost(:\d+)?$/i.test(host);const hasPort = /:\d+$/.test(host);const isIp = /^\d{1,3}(\.\d{1,3}){3}(:\d+)?$/.test(host);- if (hasDot || isLocalhost || hasPort || isIp)+ if (isLocalhost || isIp || (hasPort && !hasDot))+ return 'http://' + value;+ if (hasDot || hasPort)return 'https://' + value;return 'https://' + host + '.com' + value.slice(host.length);}