Skip to content

Commit

Permalink
add jest puppeteer example
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmahoney committed Jan 23, 2020
1 parent 1f156ad commit a4b0948
Show file tree
Hide file tree
Showing 6 changed files with 5,452 additions and 1 deletion.
1 change: 1 addition & 0 deletions jest-puppeteer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
13 changes: 13 additions & 0 deletions jest-puppeteer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Test user sign up with Jest, Puppeteer, and MailSlurp
An example repository showing how you can test email related processes with MailSlurp.

## About
`sign-up.test.js` uses Jest, Puppeteer and MailSlurp to open the MailSlurp test authentication app in a browser, create a new test email address, sign-up with that address and confirm the account.

It uses MailSlurp's `waitForLatestEmail` feature to fetch the confirmation email and extract the confirmation code. This code is then submitted in the browser and the user is confirmed.

## Setup
`npm install`

## Test
`API_KEY=your-api-key npm t`
Loading

0 comments on commit a4b0948

Please sign in to comment.