Skip to content

Playwright E2E Test for Internet Identity Fails with Timeout on [data-action=construct-identity] #56

@v2i0s2h2

Description

@v2i0s2h2

Hi DFINITY Team,

The signInWithNewIdentity() function in the @dfinity/internet-identity-playwright tool (version 0.0.5) is not working correctly. It stops and gives a "timeout" error.
It looks for something called [data-action=construct-identity] on the Internet Identity login page. But my test seems to be stuck on my app's page, not the Internet Identity page.

Core Issue:
After triggering II login from my dApp (SvelteKit app on http://localhost:5173) using await iiPage.signInWithNewIdentity({ selector: 'button-on-my-dapp-to-trigger-ii', captcha: true }), the II window opens, CAPTCHA is seemingly handled, but then it times out. Trace viewer shows the browser is still on my dApp's page, not the II UI page where [data-action=construct-identity] would be.

Environment:

  • @dfinity/internet-identity-playwright: v0.0.5
  • Playwright: [Version 1.52.0]
  • Node.js: [v23.8.0]
  • OS: [ubantu-22.04]

Request:
Could you please check if recent Internet Identity UI updates have affected the selectors or page/iframe context handling in signInWithNewIdentity?

I can provide my test script (auth.spec.ts) and playwright.config.ts if needed.

Thanks!


Image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions