cypress-temp-mail is a lightweight npm library designed to generate temporary email addresses for end-to-end testing with Cypress . It streamlines the process of testing email-related functionalities in your applications.
- Quick Setup: Easily integrate with your Cypress tests.
- Disposable Emails: Generate temporary emails for testing sign-ups, password resets, and more.
Install cypress-temp-mail
using npm:
npm install cypress-temp-mail --save-dev
===
import 'cypress-temp-mail'
cy.createTempMail(mailingAddressLabel) //Retuens you a temp email generated using provided mailingAddressLabel
//Example: cy.createTempMail("tesEmail") => Returns tesEmail@1secmail.com
cy.getMailbox() //Returns below object for the latest created email .
{ address: string, messageCount: number, messages: Message[] }
Contributions are welcome! 🙏
#HappyTesting