-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add E2E Tests for Multi-RPC Migration and Selection #26851
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
07132fe
to
6420d82
Compare
e29ac13
to
7af4f3d
Compare
Builds ready [7af4f3d]
Page Load Metrics (1789 ± 96 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
7af4f3d
to
dcb7596
Compare
Builds ready [dcb7596]
Page Load Metrics (1845 ± 107 ms)
Bundle size diffs
|
…-extension into salim/add-e2e-test-v21
Quality Gate failedFailed conditions |
@@ -494,7 +495,7 @@ export const NetworkListMenu = ({ onClose }: { onClose: () => void }) => { | |||
<AddRpcUrlModal | |||
onAdded={(url, name) => { | |||
// Note: We could choose to rename the URL if it already exists with a different name | |||
if (rpcUrls.rpcEndpoints?.every((e) => e.url !== url)) { | |||
if (rpcUrls.rpcEndpoints?.every((e) => !URI.equal(e.url, url))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches the validation done by the network controller, which does not allow duplicates, including edge cases like different casing
Builds ready [5bc7d1e]
Page Load Metrics (1829 ± 93 ms)
Bundle size diffs
|
Description
This PR introduces a series of end-to-end (E2E) tests to validate the functionality of migrating and selecting multiple RPC configurations in the application. These tests cover different scenarios to ensure that the application handles multi-RPC settings correctly, including migrating to a new RPC setup and selecting RPC endpoints from various interfaces.
Related issues
Fixes:
Manual testing steps
yarn build:test
yarn test:e2e:single test/e2e/tests/network/multi-rpc.spec.ts --browser chrome
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist