开始审核样式
This commit is contained in:
@@ -62,4 +62,7 @@ if ($captureScript -notmatch "item\.url\.startsWith\('http://localhost:5173'\)")
|
||||
if ($captureScript -match "item\.url\.includes\('localhost:5173'\)") {
|
||||
throw 'Chrome capture must not use an ambiguous localhost substring when selecting its CDP target'
|
||||
}
|
||||
if ($captureScript -notmatch "process\.env\.CHROME_DEBUGGING_PORT \|\| '9222'") {
|
||||
throw 'Chrome capture must preserve port 9222 by default and allow an isolated QA port.'
|
||||
}
|
||||
Write-Output 'CAPTURE-CHROME-PAGE-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user