fix: resolve Maestro taps from regular snapshots
Summary
Make Maestro tapOn / swipe.label resolve from the regular visible snapshot instead of the optimized interactive snapshot path.
This keeps Maestro compatibility aligned with Maestro semantics: interactions resolve against the same visible tree that assertions inspect, so text/header/container targets such as Albums are valid targets even when they are not exposed as interactive-only controls.
Reconcile the snapshot providers with that contract by removing arbitrary downstream node budgets from regular visible snapshots:
- iOS regular snapshots now traverse the XCTest tree, emit effective user-visible nodes, and still visit offscreen descendants only to mark
hiddenContentAbove/hiddenContentBelowon visible scroll containers. Fixed controls such as bottom tab bars are no longer lost behind traversal-order cutoffs, and regular snapshots reporttruncated: falsewhen all visible UI was emitted. - Android no longer applies a second TypeScript-side parser cap after the helper captures XML. The helper protocol still reports explicit truncation metadata if the on-device capture transport truncates; the host parser does not silently discard valid visible nodes.
Also remove the temporary Maestro interactive-snapshot fallback and the related diagnostics/helper surface. Compact interactive iOS snapshots are now deadline-bounded instead of node-count bounded.
Finally, stop passing interactionOutcome.retryOnNoChange for Maestro tapOn. Maestro flows assert the expected result in the next step, and no-op text taps are valid in existing flows; retrying purely because the UI did not change caused multi-second delays on header-title/no-op taps.
Validation
pnpm build:xcuitestpnpm buildpnpm check:quickpnpm check:fallowpnpm exec vitest run src/utils/__tests__/mobile-snapshot-semantics.test.ts src/platforms/android/__tests__/index.test.ts src/platforms/android/__tests__/snapshot-helper.test.ts test/integration/provider-scenarios/ios-lifecycle.test.ts src/compat/maestro/__tests__/runtime-interactions.test.ts src/compat/maestro/__tests__/runtime-assertions.test.ts src/compat/maestro/__tests__/runtime-flow.test.ts- React Navigation iOS local focused run on iPhone 17 Pro passed:
material-top-tabs.ymlbottom-tabs.ymlnative-bottom-tabs.yml
- React Navigation Android local focused run on Pixel 9 Pro XL passed:
bottom-tabs.ymlnative-bottom-tabs.ymlmaterial-top-tabs.yml
- Direct iOS regular snapshot check on the Contacts bottom-tab screen:
truncated: false, 91 visible nodes,article/contacts/albumsbottom tab ids present, and the scroll view reportshiddenContentBelowinstead of emitting every offscreen row.