When automating tests for a multi-factor authentication (MFA) flow, what strategy minimizes test fragility?
-
A
Automate reading SMS codes in real time using a telephony API or test phone number service
-
B
Disable MFA entirely in the test environment and document the gap
-
C
Hardcode a fixed OTP that never expires
-
D
Mock the MFA provider at the network layer to return a predictable code