Skip to content

feature: add sandbox e2e test#7236

Open
janicduplessis wants to merge 7 commits intodevelopfrom
@janic/sandbox-e2e-test
Open

feature: add sandbox e2e test#7236
janicduplessis wants to merge 7 commits intodevelopfrom
@janic/sandbox-e2e-test

Conversation

@janicduplessis
Copy link
Copy Markdown
Contributor

@janicduplessis janicduplessis commented Mar 10, 2026

What changed (plus any additional context for devs)

Adds an automated Maestro e2e test for the WebView sandbox. Triggered via the existing rainbow://e2e/<command> deeplink mechanism by adding a new sandbox-test action.

TestDeeplinkHandler moves from src/components/ to src/features/e2e/ui/ alongside the new sandbox UI.

What to test

  • CI: the new security Maestro test passes on the iOS and Android e2e shards.

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for aead192

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 10, 2026

🧪 Flashlight Performance Report (AWS Device Farm)

🔀 Commit: 00cb937

📎 View Artifacts

Metric Current Δ vs Baseline
Time to Interactive (TTI) 5527 ms ⚪ +37.4 ms (+0.7%)
Average FPS 56.31 ⚪ +0.0 (+0.1%)
Average RAM 391.1 MB ⚪ -3.6 MB (-0.9%)

@janicduplessis janicduplessis changed the title feature: add sandbox security e2e test feature: add sandbox e2e test Mar 10, 2026
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 6f7d49e

@janicduplessis janicduplessis force-pushed the @janic/sandbox-e2e-test branch from 0dae5cc to 0229901 Compare March 19, 2026 07:58
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for dd0710e

Comment thread src/features/e2e/core/sandboxSecurityTest.ts Dismissed
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for c8fb112

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 9b16969

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 9932e12

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 317c99d

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 06f1edc

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for f5cde07

@janicduplessis janicduplessis force-pushed the @janic/sandbox-e2e-test branch from fc2334e to 8b4179e Compare March 20, 2026 10:01
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 9c4af76

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 17bf257

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for b784601

Adds automated Maestro tests that verify the sandbox correctly blocks
unauthorized HTTP and WebSocket connections while allowing approved domains.
Moves TestDeeplinkHandler to features/e2e/ domain structure.
- Native module test: verifies NativeModules proxy blocks access from
  non-whitelisted files
- WebView initial load test: loads blocked URL directly, asserts onError
- WebView JS navigation test: loads allowed page, attempts JS navigation
  to blocked URL, verifies URL didn't change via postMessage
- Simplified Maestro assertions to just check overall pass/fail
Points rainbow-scripts postinstall at the @janic/emit-close-on-blocked-ws
branch of react-native-sandbox until those fixes are merged.
Security layer removed, native module test no longer applicable.
@janicduplessis janicduplessis force-pushed the @janic/sandbox-e2e-test branch from db47c29 to d65dabe Compare April 20, 2026 14:38
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 00cb937

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.

2 participants