In this test, the user enters their username and presses the button to log in, whereupon they are prompted to enter their six-digit, multifactor authentication (MFA) code. The test waits for the email that contains the code and parses the email to extract it. The test runner enters the code and proceeds to the QA Wolf Winner dashboard.
Our test runner connects to an internal email handler. We poll for the email, but frequently have to include delays in our test code because emails are finicky and might get delayed during a test run.
Once the email arrives, the runner parses the email and extracts the six-digit code needed for the test.