Open iankressin opened 3 weeks ago
Debugging further, I noticed that the text is different from the signature request generated by Dappwright's test app and mine.
When a message is SIWE compliant, Metamask shows a different UI. Instead of Signature request
the heading is changed to Sign-in request
, therefore the assertion below will always evaluate to false.
https://github.com/TenKeyLabs/dappwright/blob/386b19987eec2a7de18f98ec8ca86e8096e4a4ba/src/wallets/metamask/actions/signin.ts#L12
Good call-out. Is this something that can make its way into a PR?
Good call-out. Is this something that can make its way into a PR?
Yeah, I can work on it either late this week or early next one. Shouldn't be too hard to handle
Describe the bug I’m encountering an issue when writing a test to sign a SIWE message. The problem occurs when the await wallet.signin() function is called—nothing happens, and the test appears to get stuck at this step.
To investigate further, I ran the test with the --headed flag in Playwright. The test visibly hangs during the signing process (see the recording below). Eventually, the test fails due to a timeout.
To Reproduce Steps to reproduce the behavior:
Test:
Function that initiates the signin:
Logs
Expected behavior The wallet.signin() should complete and allow the test to proceed.
Screenshots
https://github.com/user-attachments/assets/f531c6f2-74ff-4a57-8f89-4d6b1b6a509b
System: