Skip to content

Commit

Permalink
WIP: Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Aug 16, 2023
1 parent e3f0690 commit 97f3e08
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/e2e/specs/metamask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,5 +459,14 @@ describe('Metamask', () => {
expect(approved).to.be.true;
});
});
// TODO: implement this test
it(`allowToAddAndSwitchNetwork should add new network and then switch to it`, () => {});
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 97f3e08

Please sign in to comment.