Skip to content

Instantly share code, notes, and snippets.

@maxhoheiser
Created March 17, 2022 13:27
Show Gist options
  • Save maxhoheiser/9900f88a8dac30924ed7592fc6c6c7c5 to your computer and use it in GitHub Desktop.
Save maxhoheiser/9900f88a8dac30924ed7592fc6c6c7c5 to your computer and use it in GitHub Desktop.
Example decrypt message test
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