This is an example app that shows how to use Cypress to test email verification functionality. This example uses the mailisk library.
This example includes a simple full stack React (NextJs) and Express application. The Express server uses Mailisk SMTP to send emails.
You will need to install packages in all directories. Run the following command in the root directory:
npm --prefix ./server install ./server \
npm --prefix ./app install ./appThe Api Key and namespace can be found in your dashboard. See the Getting Started guide for detailed steps.
Create a .env file in the root project directory. Add the following lines from your settings:
MAILISK_API_KEY=your_api_key
MAILISK_NAMESPACE=your_namespaceHead into the app folder and run:
npm run devThen go into the server folder and run:
npm run devOnce both the backend and frontend are running. You can run the tests.
To run the test run the following command in the app folder:
npx playwright testAlternatively you can run the tests using the GUI version by running the following command:
npx playwright test --ui