Review changes batch 6 of 6
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
$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 @(
|
||||
'prepareG10State',
|
||||
'g10-help',
|
||||
'g10-approve-dialog',
|
||||
'g10-approved',
|
||||
'g10-reject-dialog',
|
||||
'g10-rejected'
|
||||
)) {
|
||||
if ($capture -notmatch [regex]::Escape($required)) { throw "G10 capture state missing: $required" }
|
||||
}
|
||||
if ($capture -notmatch 'await prepareG10State\(send, action\)') { throw 'Capture runner does not prepare G10 states' }
|
||||
|
||||
Write-Output 'CAPTURE-G10-STATES-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user