Skip to content

Commit

Permalink
Update metamask-spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
r3kt-eth authored May 14, 2023
1 parent f7cd4d8 commit 1e0896b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/e2e/specs/metamask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ describe('Metamask', () => {
expect(disconnected).to.be.true;
});
});
it('should be able to cancel Metamask connection request', () => {
it('rejectMetamaskAccess should reject connection request to metamask', () => {
cy.visit('/');
cy.get('#connectButton').click();
cy.cancelMetamaskAccess().then(canceled => {
expect(canceled).to.be.true;
cy.rejectMetamaskAccess().then(rejected => {
expect(rejected).to.be.true;
});
});
it(`acceptMetamaskAccess should accept connection request to metamask`, () => {
cy.visit('/');
cy.get('#connectButton').click();
cy.acceptMetamaskAccess().then(connected => {
expect(connected).to.be.true;
Expand Down

0 comments on commit 1e0896b

Please sign in to comment.