Skip to content

Commit

Permalink
Add tests for permission revoking actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal2228 authored and duckception committed Oct 18, 2023
1 parent 43bd4f3 commit 7ffea77
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/e2e/specs/metamask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7ffea77

Please sign in to comment.