Skip to content

fix: wait for sandbox ready element instead of fixed sleep in harness beforeAll#32

Merged
CAMOBAP merged 4 commits into
mainfrom
fix/harness-render-timeout
May 17, 2026
Merged

fix: wait for sandbox ready element instead of fixed sleep in harness beforeAll#32
CAMOBAP merged 4 commits into
mainfrom
fix/harness-render-timeout

Conversation

@CAMOBAP
Copy link
Copy Markdown
Collaborator

@CAMOBAP CAMOBAP commented Apr 30, 2026

No description provided.

@CAMOBAP CAMOBAP self-assigned this Apr 30, 2026
@CAMOBAP CAMOBAP force-pushed the fix/harness-render-timeout branch 2 times, most recently from e652fc5 to b107868 Compare May 17, 2026 20:27
…for CI

- SandboxReactNativeView wrapper already unwraps e.nativeEvent.data before
  calling onMessage, so msg IS the data directly (not msg.data). iOS sends
  an object, Android sends a JSON string — handle both with typeof check.
- Switch beforeAll to waitFor/queryByTestId to avoid findByTestId 3-arg API
- Use a sibling hidden View for sandbox-ready marker instead of passing
  testID directly to SandboxReactNativeView: changing testID on the native
  view while the sandbox is running causes the iOS sandbox to restart,
  leading to a native crash during test execution.
- Reset sandboxReady to false on substitution toggle so the sandbox-ready
  marker disappears and reappears once the new sandbox is ready; replace
  the fixed 3s sleep in setSubstitution with a proper waitFor.
- Increase bridgeTimeout from default 60s to 120s so iOS CI simulator has
  enough time to install and boot the app after a long Xcode build.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CAMOBAP CAMOBAP force-pushed the fix/harness-render-timeout branch from b107868 to da1bdbc Compare May 17, 2026 20:55
@CAMOBAP CAMOBAP marked this pull request as ready for review May 17, 2026 21:16
@CAMOBAP CAMOBAP merged commit 94232fb into main May 17, 2026
11 checks passed
@CAMOBAP CAMOBAP deleted the fix/harness-render-timeout branch May 17, 2026 21:16
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