diff --git a/pages/auth/a06-auth-status.vue b/pages/auth/a06-auth-status.vue index 0c80b68..990adf3 100644 --- a/pages/auth/a06-auth-status.vue +++ b/pages/auth/a06-auth-status.vue @@ -1,18 +1,6 @@ diff --git a/tests/a06-auth-status-contract.ps1 b/tests/a06-auth-status-contract.ps1 index f723f80..742ba08 100644 --- a/tests/a06-auth-status-contract.ps1 +++ b/tests/a06-auth-status-contract.ps1 @@ -39,17 +39,16 @@ foreach ($required in @( 'const openRecovery = () =>', 'const closeRecovery = () =>', 'const goBack = () =>', - 'a01-red-hall-ink-backdrop-v1.png', - 'brand-seal.png', + '.*?)^\}') +if (-not $contentRule.Success) { throw 'A06 status content rule is missing.' } +foreach ($required in @('display: flex;', 'flex: 1;', 'flex-direction: column;', 'max-width: 480px;', 'margin: 0 auto;')) { + Assert-Contains -Content $contentRule.Groups['Body'].Value -Expected $required -Message "A06 status content must use document flow: $required" +} + +$headingRule = [regex]::Match($page, '(?ms)^\.page-heading\s*\{(?.*?)^\}') +if (-not $headingRule.Success) { throw 'A06 page heading rule is missing.' } +Assert-Contains -Content $headingRule.Groups['Body'].Value -Expected 'grid-template-columns: minmax(0, 1fr);' -Message 'A06 heading must center against the full content width.' +foreach ($selector in @('page-title', 'page-subtitle', 'status-divider')) { + $rule = [regex]::Match($page, "(?ms)^\.$selector\s*\{(?.*?)^\}") + if (-not $rule.Success) { throw "A06 heading child rule is missing: $selector" } + Assert-Contains -Content $rule.Groups['Body'].Value -Expected 'grid-column: 1;' -Message "A06 heading child must remain in the full-width grid column: $selector" +} + Write-Output 'A06-AUTH-STATUS-CONTRACT PASS'