Skip to content

Instantly share code, notes, and snippets.

@maxhoheiser
Created March 22, 2022 16:37
Show Gist options
  • Save maxhoheiser/209b4b61f21b1fc29f348bdca1f3dbff to your computer and use it in GitHub Desktop.
Save maxhoheiser/209b4b61f21b1fc29f348bdca1f3dbff to your computer and use it in GitHub Desktop.
Example custom Cypress command in index.js
Cypress.Commands.add('confirmMetamaskEncryptionPublicKeyRequest', () => {
return cy.task('confirmMetamaskEncryptionPublicKeyRequest');
});
Cypress.Commands.add('rejectMetamaskEncryptionPublicKeyRequest', () => {
return cy.task('rejectMetamaskEncryptionPublicKeyRequest');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment