fix(agent99): normalize Windows control readback
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m19s
CD Pipeline / build-and-deploy (push) Successful in 15m8s
CD Pipeline / post-deploy-checks (push) Successful in 2m11s
AI 技術雷達監控 / ai-technology-watch (push) Successful in 43s

This commit is contained in:
Your Name
2026-07-17 07:29:16 +08:00
parent a2179a0f0b
commit f7c7a9e511
2 changed files with 53 additions and 17 deletions

View File

@@ -72,3 +72,14 @@ def test_baseline_receipt_marks_noninteractive_utf8_boundaries() -> None:
assert 'utf8Output = $true' in source
assert 'telegramNotificationSent = $false' in source
assert 'kmRagWritebackPerformed = $false' in source
def test_baseline_normalizes_windows_collection_and_keyboard_objects() -> None:
source = _source()
assert "foreach ($language in $languageList)" in source
assert '$override.PSObject.Properties["InputMethodTip"]' in source
assert "Get-DefaultInputMethodTip" in source
assert "Test-WindowsControlSnapshot $independentReadback.snapshot $before -IndependentProcess" in source
assert "uiCulture = [string]$Snapshot.uiCulture" not in source
assert "([string]$Snapshot.userName).ToLowerInvariant()" in source