View on GitHub


Email testing and SMS verification examples using MailSlurp and a wide range of frameworks.

Test Emails in Cypress JS

See /cypress/integration/ for usage.

Note: the test uses mailslurp-client and adds custom commands in the support/commands.js file.


First get a MailSlurp API Key then install the dependencies:

npm init -y npm install --save mailslurp-client cypress


To run these tests set the environment variable CYPRESS_API_KEY to your MailSlurp API Key.

CYPRESS_API_KEY="your-mailslurp-api-key" npm run test`