10 lines
581 B
PowerShell
10 lines
581 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
$page = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g03-create-genealogy.vue') -Raw -Encoding UTF8
|
|
foreach ($token in @('sexOptions', 'mode="selector"', 'mode="date"', 'ancestorForm', 'createLocalGenealogyPreview')) {
|
|
if ($page.Contains($token)) { throw "G03 must not retain uncommitted first-ancestor flow: $token" }
|
|
}
|
|
if (-not $page.Contains('class="create-card__note"')) { throw 'G03 must retain a create-result guidance note' }
|
|
Write-Output 'G03-ANCESTOR-SEMANTIC-FIELDS-CONTRACT PASS'
|