From 7ffea772e5db897eaecd2a92b28866b62e3b646a Mon Sep 17 00:00:00 2001 From: Rafal2228 Date: Tue, 17 Oct 2023 16:38:33 +0200 Subject: [PATCH] Add tests for permission revoking actions --- tests/e2e/specs/metamask-spec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/e2e/specs/metamask-spec.js b/tests/e2e/specs/metamask-spec.js index 5e11ab0d7..4cbdcf635 100644 --- a/tests/e2e/specs/metamask-spec.js +++ b/tests/e2e/specs/metamask-spec.js @@ -144,6 +144,18 @@ describe('Metamask', () => { expect(confirmed).to.be.true; }); }); + it(`rejectMetamaskRevokePermissionToAll should reject revoking permission to all NFTs`, () => { + cy.get('#revokeButton').click(); + cy.rejectMetamaskRevokePermissionToAll().then(confirmed => { + expect(confirmed).to.be.true; + }); + }); + it(`confirmMetamaskRevokePermissionToAll should confirm revoking permission to all NFTs`, () => { + cy.get('#revokeButton').click(); + cy.confirmMetamaskRevokePermissionToAll().then(confirmed => { + expect(confirmed).to.be.true; + }); + }); it(`importMetamaskAccount should import new account using private key`, () => { cy.importMetamaskAccount( '0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6',