Skip to content

test: support custom interaction host sizes - #1109

Merged
Kyle-Ye merged 2 commits into
mainfrom
optimize/interaction_tests
Sep 27, 2026
Merged

Kyle-Ye merged 2 commits into
mainfrom
optimize/interaction_tests

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add a size parameter to withInteractionTestHost, using the same 200×200 default as UI snapshots through shared test support.
  • Apply the requested size to the hosted content and captured image on macOS and iOS. Keep resized macOS test windows offscreen and capture a sized iOS hosting view inside Hammer's screen-sized container.
  • Check the actual host dimensions, use the default for tap gestures, retain an explicit 400×400 size for observation snapshots, and document the parameter.

@github-actions github-actions Bot added area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: tests Test coverage, test infrastructure, snapshots, or test-only changes. labels Sep 27, 2026
@Kyle-Ye

Kyle-Ye commented Sep 27, 2026

Copy link
Copy Markdown
Member Author

/interactiontest update

@Kyle-Ye
Kyle-Ye merged commit 2e62a10 into main Sep 27, 2026
1 check passed
@Kyle-Ye
Kyle-Ye deleted the optimize/interaction_tests branch September 27, 2026 09:26
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. 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