chore(e2e): Add E2E test automation and remove legacy tests#112
Merged
chore(e2e): Add E2E test automation and remove legacy tests#112
Conversation
…oid Metro" This reverts commit b71fb8e.
…x metadata assertion
Move E2E patches that don't need runtime application into the app template and setup script: updateDialog removal, Alert→console.log, METADATA indicator, usesCleartextTraffic, SUPPORTED_PLATFORMS restriction to iphonesimulator only.
…back flow - Always pass --simulator to run-ios (auto-detect booted or default iPhone 16) to prevent targeting connected physical devices - Guard JSON.stringify with ?? null for undefined metadata values - Use code-push CLI (create-history, update-history) instead of direct JSON manipulation for release history management - Remove redundant 02-clear-and-restart rollback flow
…splay
Add E2E test for partial rollback scenario (1.0.2 → 1.0.1) where only
the latest release is disabled, verifying rollback targets the previous
update instead of the binary. Use console.log markers to ensure different
bundle hashes for releases with identical source content.
Change metadata indicator from METADATA_LOADED to METADATA_V{label} to
display the actual running version in the UI.
Remove Examples/create-app.js, Examples/nexpect.js, and test/ directory which were part of the old AppCenter-based testing setup. Also remove related test:* and tslint scripts from package.json.
Remove 11 unused devDependencies left over from legacy test infrastructure: @types/assert, @types/mkdirp, @types/mocha, @types/q, archiver, body-parser, mkdirp, mocha, q, slash, tslint.
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.
Summary
test/,code-push-plugin-testing-framework/,Examples/create-app.js)E2E Test System
The new
e2e/directory provides a fully automated E2E testing workflow:App.tsxto point at the mock server with backup/restorenpx code-pushCLI to create release history and bundle updatesTest Phases
Usage
npm run e2e -- --app RN0840 --platform ios npm run e2e -- --app RN0840 --platform ios --maestro-only # skip buildRemoved
Test plan
npm run setup-example-app -- -v 0.84.0npm run e2e -- --app RN0840 --platform ios(+ android)npm run jestandnpm run typecheckpass