Cypress · Senior · Question 47 of 76
What is a good approach to testing emails sent by the app?
- 1Emails can't be checked from Cypress
- 2Use a test mail server API and read messages via
cy.request - 3Open a real inbox web UI with
cy.originin each test
Show the answer
Correct answer: Use a test mail server API and read messages via cy.request
Explanation
Tools like Mailpit expose an API, so tests fetch the message, extract the link and continue.