Skip to content

Instantly share code, notes, and snippets.

@maxhoheiser
Last active March 16, 2022 13:26
Show Gist options
  • Save maxhoheiser/ab780126e03a9fa1a60270718d50027e to your computer and use it in GitHub Desktop.
Save maxhoheiser/ab780126e03a9fa1a60270718d50027e to your computer and use it in GitHub Desktop.
Example chain custom Synpress async command
cy.switchMetamaskAccount(1).then((accountSwitched) => {
expect(accountSwitched).to.be.true;
});
cy.confirmMetamaskSignatureRequest().then((confirmed) => {
expect(confirmed).to.be.true;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment