feature: add sandbox e2e test#7236
Open
janicduplessis wants to merge 7 commits intodevelopfrom
Open
Conversation
|
🧪 Flashlight Performance Report (AWS Device Farm) 🔀 Commit: 00cb937
|
0dae5cc to
0229901
Compare
fc2334e to
8b4179e
Compare
This was referenced Apr 13, 2026
Merged
Merged
8b4179e to
f09d25e
Compare
a2d60cb to
4b5666e
Compare
f09d25e to
186c343
Compare
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.
db47c29 to
d65dabe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 newsandbox-testaction.TestDeeplinkHandlermoves fromsrc/components/tosrc/features/e2e/ui/alongside the new sandbox UI.What to test
securityMaestro test passes on the iOS and Android e2e shards.