Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Aug 17, 2023
1 parent f5f0591 commit bfdd78e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/e2e/specs/metamask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,5 +457,12 @@ describe('Metamask', () => {
expect(approved).to.be.true;
});
});
it(`allowToAddAndSwitchNetwork should switch network if this network was previously already added`, () => {
cy.changeMetamaskNetwork('mainnet');
cy.get('#addEthereumChain').click();
cy.allowMetamaskToAddAndSwitchNetwork().then(approved => {
expect(approved).to.be.true;
});
});
});
});

0 comments on commit bfdd78e

Please sign in to comment.