Review changes batch 6 of 6
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$capture = Get-Content -LiteralPath (Join-Path $root 'scripts/capture-chrome-page.js') -Raw -Encoding utf8
|
||||
|
||||
foreach ($required in @('prepareFSeriesState', 'f02-validation', 'module-preview-toast', 'waitForPageLoad')) {
|
||||
if ($capture -notmatch [regex]::Escape($required)) { throw "F series capture state missing: $required" }
|
||||
}
|
||||
if ($capture -notmatch 'await prepareFSeriesState\(send, action\)') { throw 'Capture runner does not prepare F series states' }
|
||||
if ($capture -notmatch "waitForPageLoad\(socket, \(\) => send\('Page\.reload'\)\)") { throw 'Capture runner must wait for the reload load event before DOM inspection' }
|
||||
|
||||
Write-Output 'CAPTURE-F-SERIES-STATES-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user