fix: scope control fades to preserve responsive window animation

This commit is contained in:
2026-10-18 18:43:05 +02:00
parent 29a70678a4
commit c2261ad2f0
5 changed files with 87 additions and 30 deletions
+5 -3
View File
@@ -46,10 +46,12 @@ def check_window_layout(root, app, fixtures):
)
log = diagnostics.read_text(errors="replace") if diagnostics.exists() else ""
report = json.loads(result_path.read_text()) if result_path.exists() else {}
if result.returncode != 0 or not report.get("passed") or report.get("steps") != 32:
expected_animations = 0 if report.get("reduceMotion") else 16
if (result.returncode != 0 or not report.get("passed") or report.get("steps") != 32
or report.get("animatedTransitions") != expected_animations):
raise RuntimeError(f"native window layout failed: {report}; {result.stdout}{result.stderr}{log}")
print("PASS native SwiftUI window layout: repeated compact/normal transitions with queue open/closed, "
"rapid intent changes, original window and exact normal geometry restored")
print(f"PASS native SwiftUI window layout: {report['animatedTransitions']} observed animations, "
"responsive mid-animation requests, queue open/closed, minimum sizes and exact normal geometry restored")
def check_cli_instances(root, app, fixtures):