You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/e2e/json-rpc/wallet_addEthereumChain.spec.ts
+62-1
Original file line number
Diff line number
Diff line change
@@ -310,7 +310,7 @@ describe('Add Ethereum Chain', function () {
310
310
});
311
311
});
312
312
313
-
describe('the dapp is already permitted to use the chain being added',()=>{
313
+
describe('the dapp is already permitted to use the chain being added, and the dapp is on a different chain from the chain being added',()=>{
314
314
it('automatically switches to the chain when the rpc endpoint is added but a different rpc endpoint already existed for the chain',asyncfunction(){
315
315
awaitwithFixtures(
316
316
{
@@ -434,4 +434,65 @@ describe('Add Ethereum Chain', function () {
434
434
);
435
435
});
436
436
});
437
+
describe('the dapp is already permitted to use the chain being added, and the dapp is on the same chain as the chain being added, but the rpcEndpoint being proposed does not match any existing rpcEndpoints for the chain',()=>{
438
+
it('prompts to add the rpc endpoint to the chain networkConfiguration and set it as the default',asyncfunction(){
0 commit comments