From a0d19f4aabac94594c90fccb0715142edf690518 Mon Sep 17 00:00:00 2001 From: rain Date: Tue, 21 Jul 2026 13:56:23 +0800 Subject: [PATCH] test: tighten G03 shared header contract --- tests/g03-visual-states-contract.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/g03-visual-states-contract.ps1 b/tests/g03-visual-states-contract.ps1 index cfb7911..d539bc5 100644 --- a/tests/g03-visual-states-contract.ps1 +++ b/tests/g03-visual-states-contract.ps1 @@ -9,7 +9,7 @@ function Assert-Match { } if ($g03 -match '返回') { throw 'G03 header must use only the approved image back arrow' } -Assert-Match -Content $g03 -Pattern '(?s)' -Message 'G03 must use PageHeader with its dynamic title and custom back handler' +Assert-Match -Content $g03 -Pattern '(?s)' -Message 'G03 must use PageHeader with its dynamic title and custom back handler' if ($g03 -match 'flow-header|flow-header__back|flow-header__title') { throw 'G03 must not retain a private header implementation' } Assert-Match -Content $g03 -Pattern '(?s)\.flow-note,\s*\.flow-rule__note\s*\{[^}]*font-size:\s*25rpx;' -Message 'G03 guidance copy must use the approved readable size' Assert-Match -Content $g03 -Pattern '(?s)\.flow-rule__option\s*\{[^}]*font-size:\s*23rpx;' -Message 'G03 visibility options must use the approved readable size'