This project demonstrates how to write an end-to-end (E2E) registration and email verification test using Playwright and Tigrmail as the email API.
- Install dependencies
npm install
- Get a Tigrmail API token
- Sign up or log in at https://console.tigrmail.com
- Copy your API token
- Configure environment variables
- Copy
.env.example
to.env
- Paste your Tigrmail API token as the value for
TIGRMAIL_TOKEN
in.env
- Copy
To run the test in Playwright UI mode (for interactive debugging):
npx playwright test --ui
- Opens the signup page
- Fills in a unique email and password
- Submits the registration form
- Waits for the verification email via Tigrmail
- Extracts the verification link and completes the flow
For more details about Tigrmail, visit tigrmail.com.