We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f0591 commit d92f2e7Copy full SHA for d92f2e7
tests/e2e/specs/metamask-spec.js
@@ -457,5 +457,12 @@ describe('Metamask', () => {
457
expect(approved).to.be.true;
458
});
459
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
467
468
0 commit comments