14 lines
572 B
PowerShell
14 lines
572 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
$runtime = Get-Content -LiteralPath (Join-Path $root 'tests/g11-g12-settings-poems-runtime-smoke.js') -Raw -Encoding utf8
|
|
|
|
foreach ($required in @(
|
|
'const waitForPageLoad = async (socket, trigger)',
|
|
"message.method === 'Page.loadEventFired'",
|
|
"await waitForPageLoad(socket, () => send('Page.reload'))"
|
|
)) {
|
|
if ($runtime -notmatch [regex]::Escape($required)) { throw "G11/G12 runtime navigation synchronization missing: $required" }
|
|
}
|
|
|
|
Write-Output 'G11-G12-RUNTIME-NAVIGATION-CONTRACT PASS'
|