Objective
What to automate
Enable MFA for admin_user, use the public recovery code, then complete the returned recovery challenge.
Preconditions and test data
Preconditions
- Use a fresh isolated Practice Lab browser context.
- Open the fixture identified by FX-AUTH-001.
Test data
username: admin_userrecovery code: RECOVER-4803OTP: 480321
Expected result
A recovery challenge is created and its verified result creates a synthetic Admin UI session.
Progressive hints
Hint 1
MFA enrollment must be enabled before the recovery request.
Hint 2
Use the recovery endpoint to obtain a new challenge ID.
Hint 3
Verify the returned challenge using the same public synthetic OTP.
I’ve tried it — show solution
- MFA enrollment must be enabled before the recovery request.
- Use the recovery endpoint to obtain a new challenge ID.
- Verify the returned challenge using the same public synthetic OTP.
The deliberately failing starter is in tests/mfa.spec.ts inside the TypeScript starter ZIP.