60%
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
$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.sex', 'auto-height')) {
|
||||
if (-not $page.Contains($token)) { throw "G03 ancestor semantic field missing: $token" }
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user