This project demonstrates how to write an end-to-end (E2E) registration and email verification test using Playwright and Tigrmail as the email API.
- Python 3.11+
- npm is not required for this folder, but you need the Playwright browsers (
playwright install) after installing Python dependencies. - Tigrmail account (for API token)
- Create a virtual environment
python3 -m venv .venv source .venv/bin/activate - Install dependencies
pip install -r requirements.txt playwright 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.exampleto.env - Paste your Tigrmail API token as the value for
TIGRMAIL_TOKENin.env
- Copy
The test loads .env automatically via python-dotenv.
pytest --headed --slowmo 1000The bundled pytest.ini sets the base URL to https://sandbox.tigrmail.com, so relative paths like /sign-up resolve automatically.