Skip to content

furionix-labs/playwright-python-email-verification-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright Email Verification (Python)

This project demonstrates how to write an end-to-end (E2E) registration and email verification test using Playwright and Tigrmail as the email API.

Prerequisites

  • 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)

Setup

  1. Create a virtual environment
    python3 -m venv .venv
    source .venv/bin/activate
  2. Install dependencies
    pip install -r requirements.txt
    playwright install
  3. Get a Tigrmail API token
  4. Configure environment variables
    • Copy .env.example to .env
    • Paste your Tigrmail API token as the value for TIGRMAIL_TOKEN in .env

The test loads .env automatically via python-dotenv.

Running the Test in Headed Mode with Slow Motion

pytest --headed --slowmo 1000

The bundled pytest.ini sets the base URL to https://sandbox.tigrmail.com, so relative paths like /sign-up resolve automatically.