Videos
Check out our tutorial video series.
Test email accounts for CypressJS. End-to-end testing with real email addresses using MailSlurp Cypress plugin.
Cypress is a popular end-to-end testing framework for NodeJS. With the MailSlurp plugin you can test applications using real email addresses. MailSlurp is a free email account API with official support for Cypress. Here is a full example on how to test an web application sign up process using Cypress and MailSlurp:
MailSlurp has an official plugin for CypressJS that allows you to create throwaway email inboxes on demand during tests.
MailSlurp is free but requires an API Key. Get yours by creating a free account. Set the environment variable CYPRESS_MAILSLURP_API_KEY or use the cypress.json file env property:
The package json for your project should look something like this:
Create inboxes using the method to obtain a mailslurp instance and then call instance methods such as
.
Here is an example that signs up for a user account on the demo app at playground.mailslurp.com
Here is the code using in typescript:
Check out our tutorial video series.
Email and SMS guides for automation and testing.
View github project code for multiple languages.
Latest posts from the MailSlurp team.
Test, build, and automate messaging with a free MailSlurp account.