Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a extra commands for confirming sign message on metamask #234

Closed
RabbitTerra opened this issue Oct 12, 2021 · 2 comments
Closed

Need a extra commands for confirming sign message on metamask #234

RabbitTerra opened this issue Oct 12, 2021 · 2 comments

Comments

@RabbitTerra
Copy link

RabbitTerra commented Oct 12, 2021

image

Hi, @drptbl. I'm having a trouble with confirming this personal sign and eth_signTypedData_v4 request metamask popup.
I can't find proper command from the package.
Do you have an any idea for this?
Regards

@drptbl
Copy link
Member

drptbl commented Oct 12, 2021

Hey @RabbitTerra,

There are commands for it:
https://github.com/Synthetixio/synpress/blob/dev/support/index.d.ts#L109-L120

You can use:
cy.confirmMetamaskSignatureRequest();
or
cy.rejectMetamaskSignatureRequest();

They have not been released as "production" release yet. If you want to use them, bump your synpress version to 0.9.25-beta.12 (@synthetixio/synpress@0.9.25-beta.12) in package.json.

Let me know if that works for you, so that we can close this issue (also please let me know if you encounter any other, unrelated issues on beta version as it also has many other improvements, like waiting for website to be fully loaded which hopefully is working fine).

Happy to see how far you're progressing with your testing suite!

Cheers,
Jakub.

@RabbitTerra
Copy link
Author

Hi, @drptbl . Thanks for your fast reply.
The command is working well.
Thank you very much for your support.

@drptbl drptbl closed this as completed Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants