E2E testing in MFA environment with Playwright auth session
A couple of months ago, I found a way to end-to-end test your solutions, which require you to log in on Microsoft with multifactor authentication enabled. The solution is to use a time-based one-time password (TOTP) that you can generate on the fly during your automated tests.
info You can read more about the approach in the automating Microsoft 365 login with multi-factor authentication in Playwright tests article.
Published on:
Learn more