How do I get the one time code for my E2E testing?

Currently our app uses the one-time code sent by e-mail. But we want to include end to end testing using Playwright and login the user first.

What’s the best way to achieve this?. Do we need to change the way we currently login in for testing? or is it possible to bypass this login method?.

Thanks in advance!.

Hi there @fernandoalugo welcome to the community!

Perhaps this method could work for your use case? That is, creating a temporary db connection (traditional username/pass) and dummy user for testing purposes.

Let us know!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.