Skip to content

fix(uitests): stabilize animation snapshot timing - #1182

Merged
Kyle-Ye merged 1 commit into
mainfrom
bugfix/animation_test
Oct 18, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
bugfix/animation_test

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Install the iOS layoutSubviews and displayLinkTimer: test hooks once per method. Generic hosting view classes share one method entry, so exchanging implementations in every viewDidLoad disabled the hooks for every second animation controller. Snapshot frames then depended on test order and wall-clock time.
  • Remove the intermittent known-issue wrappers from the AnimationCompletion, BezierAnimation, RepeatAnimation, Color frame animation, and ForEach transition snapshots.
  • Tighten the MatchedGeometryEffect precision from 0.8 to 0.98. The geometry matches in all frames; the middle frame has a small text and button rendering difference.

Closes #690

Validation

  • iOS 18.5 Simulator (iPhone 16 Pro), full OpenSwiftUIUITests target: before the change, the BezierAnimation, RepeatAnimation, and ForEach transition snapshots mismatched. After the change, five record-and-verify rounds had no animation snapshot mismatch.
  • macOS 26.6.2: all animation snapshot suites pass. MatchedGeometryEffect passed 5 of 5 iterations with the Compute backend.
  • The iOS animation references recorded with the previous hooks contain shifted middle frames, so this change requires a reference update.

@github-actions github-actions Bot added area: animation Animation, transitions, transactions, or timing behavior. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: tests Test coverage, test infrastructure, snapshots, or test-only changes. labels Oct 18, 2026
@Kyle-Ye

Kyle-Ye commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

/uitest

@Kyle-Ye
Kyle-Ye force-pushed the bugfix/animation_test branch from 0b626ee to 9368e7f Compare October 18, 2026 11:16
@Kyle-Ye

Kyle-Ye commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

/uitest swiftui-renderer-iag update

Install the iOS layout and display link hooks once per method. Generic
hosting view classes share one Method, so exchanging implementations in
every viewDidLoad disabled the hooks for every second controller.

Remove the intermittent known-issue wrappers from animation snapshots
and tighten the MatchedGeometryEffect tolerance.

Refs #690
@Kyle-Ye
Kyle-Ye force-pushed the bugfix/animation_test branch from 9368e7f to c98609a Compare October 18, 2026 12:24
@Kyle-Ye
Kyle-Ye merged commit 872cea1 into main Oct 18, 2026
1 check passed
@Kyle-Ye
Kyle-Ye deleted the bugfix/animation_test branch October 18, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: animation Animation, transitions, transactions, or timing behavior. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: tests Test coverage, test infrastructure, snapshots, or test-only changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] iOS Animation test case mismatch issue

1 participant