Cypress is one of the top end-to-end testing frameworks and is popular with QA teams everywhere. But testing user sign up and authentication flows can prove challenging. That's why we created the cypress-mailslurp plugin!

MailSlurp's Cypress JS integration allows you to create real email accounts and phone numbers on demand during each test run. You can use these to send and receive emails during tests and perform actions like account verification, two factor authentication, password reset and plenty more.

Real users, real tests

Many quality assurance teams resort to manually testing sign-up, login, and user flows within application because accessing email accounts via SMTP or Gmail APIs can be difficult or flaky. MailSlurp enables on-demand creation of unique user accounts that can be used within tests for isolated automation testing with real accounts.

Integrates seamlessly

The Cypress plugin for MailSlurp fits easily into traditional workflows. Simply add an import to your file and configure your API_KEY and you have access to MailSlurp features within your tests using .

See documentation

Send, receive, extract content

Use MailSlurp within tests to send and receive email, wait for matching emails to arrive, and extract expected content like links, verification codes, and more.

View examples on GitHub