feat: animate queue sidebar expansion and collapse
This commit is contained in:
@@ -47,11 +47,14 @@ 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 {}
|
||||
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):
|
||||
expected_queue_animations = 0 if report.get("reduceMotion") else 9
|
||||
if (result.returncode != 0 or not report.get("passed") or report.get("steps") != 36
|
||||
or report.get("animatedTransitions") != expected_animations
|
||||
or report.get("animatedQueueTransitions") != expected_queue_animations):
|
||||
raise RuntimeError(f"native window layout failed: {report}; {result.stdout}{result.stderr}{log}")
|
||||
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")
|
||||
print(f"PASS native SwiftUI window layout: {report['animatedTransitions']} compact and "
|
||||
f"{report['animatedQueueTransitions']} queue animations, stable video size, responsive reversals, "
|
||||
"screen-edge fitting, fullscreen fixed bounds, minimum sizes and exact normal geometry restored")
|
||||
|
||||
|
||||
def check_cli_instances(root, app, fixtures):
|
||||
|
||||
Reference in New Issue
Block a user