Skip to content

Commit d92f2e7

Browse files
committed
Add test
1 parent f5f0591 commit d92f2e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/e2e/specs/metamask-spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,5 +457,12 @@ describe('Metamask', () => {
457457
expect(approved).to.be.true;
458458
});
459459
});
460+
it(`allowToAddAndSwitchNetwork should switch network if this network was previously already added`, () => {
461+
cy.changeMetamaskNetwork('mainnet');
462+
cy.get('#addEthereumChain').click();
463+
cy.allowMetamaskToAddAndSwitchNetwork().then(approved => {
464+
expect(approved).to.be.true;
465+
});
466+
});
460467
});
461468
});

0 commit comments

Comments
 (0)