Skip to content

fix(uitests): stabilize macOS snapshot host lifetime - #1146

Merged
Kyle-Ye merged 1 commit into
mainfrom
fix/macos-snapshot-host
Oct 14, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
fix/macos-snapshot-host

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Keep macOS snapshot hosts attached to a hidden window until capture completes to prevent later ProgressView snapshots from losing labels after a Toggle snapshot.
  • Preserve the requested content size, layout display scale, and bitmap color space.

Validation

Complete SwiftUI recording on macOS 26.6.2 produced 295 reference images with no unexpected failures. Compared with the previous implementation, 281 images are unchanged and 14 differ in text rendering or inactive control appearance. Two complete recordings with the fix produced 295 byte-identical images.

@Kyle-Ye

Kyle-Ye commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

/uitest macos osui-iag update

@github-actions github-actions Bot added area: tests Test suites, UI tests, fixtures, snapshots, and test support code. platform: macOS macOS-specific behavior or support. type: tests Test coverage, test infrastructure, snapshots, or test-only changes. labels Oct 14, 2026
@Kyle-Ye
Kyle-Ye merged commit 9b15029 into main Oct 14, 2026
2 checks passed
@Kyle-Ye
Kyle-Ye deleted the fix/macos-snapshot-host branch October 14, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suites, UI tests, fixtures, snapshots, and test support code. platform: macOS macOS-specific behavior or support. type: tests Test coverage, test infrastructure, snapshots, or test-only changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant