From 1e0896ba9960b6a94b46ea0adfe34da38375d2de Mon Sep 17 00:00:00 2001 From: "r3kt.eth" Date: Sun, 14 May 2023 20:55:36 +0200 Subject: [PATCH] Update metamask-spec.js --- tests/e2e/specs/metamask-spec.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/e2e/specs/metamask-spec.js b/tests/e2e/specs/metamask-spec.js index f151d38af..f23a37631 100644 --- a/tests/e2e/specs/metamask-spec.js +++ b/tests/e2e/specs/metamask-spec.js @@ -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;