Skip to content

test: screenshot plain native view on UI thread in IsolatedTest#101

Draft
EmilioBejasa wants to merge 1 commit intomainfrom
screenshot-native-view-test
Draft

test: screenshot plain native view on UI thread in IsolatedTest#101
EmilioBejasa wants to merge 1 commit intomainfrom
screenshot-native-view-test

Conversation

@EmilioBejasa
Copy link
Copy Markdown
Collaborator

Summary

  • Replaces the previous IsolatedTest with a single @UiThreadTest that screenshots a plain native TextView
  • Uses ViewHelpers.setupView() + Screenshot.snap() — no React Native, no Fabric, no async waiting
  • Validates the screenshot pipeline end-to-end deterministically

Why

This is the first step toward a deterministic React Native screenshot test. Before adding RN complexity, confirm that ViewHelpers + Screenshot.snap work correctly when run entirely on the UI thread.

Test plan

  • Run ./gradlew :app:connectedDebugAndroidTest with a connected device — screenshotNativeView should pass

🤖 Generated with Claude Code

Uses @UiThreadTest to run entirely on the main thread — no runOnMainSync,
no async waiting, no React Native. Validates the screenshot pipeline
(ViewHelpers + Screenshot.snap) works deterministically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant