Created
March 17, 2022 13:27
-
-
Save maxhoheiser/9900f88a8dac30924ed7592fc6c6c7c5 to your computer and use it in GitHub Desktop.
Example decrypt message test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("Decrypt message", () => { | |
before(() => { | |
cy.login(); | |
cy.switchToAccountOne(); | |
cy.visit(`${Cypress.config().baseUrl}/redeem/12`); | |
}); | |
it("Should decrypt public key", () => { | |
cy.findByRole("button", { name: /redeem via metamask/i }).click(); | |
cy.confirmMetamaskDecryptionRequest().then((accepted) => { | |
expect(accepted).to.be.true; | |
}); | |
cy.contains("Message").should("be.visible"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment