Playwright · Senior · Question 14 of 77
How do you test a flow that sends a confirmation email?
- 1Skip it because emails can't be checked in automated tests
- 2Use a test mail service or API and read the email from the test
- 3Check a real inbox by logging in to it through its web UI
Show the answer
Correct answer: Use a test mail service or API and read the email from the test
Explanation
Tools like Mailpit or a provider's test API let the test fetch the email, extract the link and continue the flow.