Skip to content

Latest commit

 

History

History

javascript-cypress-js

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Test Emails in Cypress JS

See /cypress/integration/example.cy.js for usage.

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

Setup

First get a MailSlurp API Key then install the dependencies:

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

Run

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`