For Engineering Managers, Senior Engineers, and CTOs, 2FA flows are critical—but traditionally painful to test. You need an inbox, you need to extract the OTP or magic link, and you need tests that can run cleanly in CI without flakiness.
Stably makes this trivial.
If you use the Stably no-code editor, everything is built-in out of the box:
You add a "Setup Email Inbox" step.
Stably generates a unique, isolated test inbox.
Your app sends the OTP or magic link to that inbox.
Stably automatically captures the email and extracts the code/link into a variable.
The next step in your test flows uses that variable to complete login.
No IMAP scripts. No Gmail workarounds. No brittle parsing.
It just works.
If your team prefers writing Playwright or TypeScript tests directly, the Stably SDK will soon support the exact same inbox capability:
const inbox = await stably.createInbox();
const otp = await stably.waitForOtp(inbox);
This means:
All inside your codebase—no custom infrastructure needed.
Deterministic inbox + code extraction means your 2FA tests are reliable every time.
Every test gets its own inbox—no conflicts, no race conditions.
Test expired codes, resends, lockouts, and edge cases with confidence.
Reliable audit trail of login flows for security reviews.
Idempotence, no dependencies, parallel-safe tests—automatically applied by Stably's Test Creation Agent.
Your authentication flow stays stable even when your product moves fast.
The no-code editor is available now. The SDK support is coming soon.
Ready to make 2FA testing painless? Try Stably and see how we've solved one of testing's most notorious pain points.