Skip to content

Latest commit

 

History

History
70 lines (44 loc) · 1.56 KB

File metadata and controls

70 lines (44 loc) · 1.56 KB

📝 Mini Project – To‑do App Automation

This project automates testing of a sample To‑do App using Playwright inside Docker. It demonstrates scalable test execution, tagging (@smoke, @regression).


🚀 Features

  • Playwright test automation for To‑do App
  • Dockerized environment for consistent runs
  • Tag-based test execution (@smoke, @regression)
  • Created testdata similar to examples in cucumber

📦 Prerequisites

  • Docker Desktop installed (Optional)
  • Node.js & npm installed (for local Playwright usage)
  • Git (optional, for version control)

📂 Project Structure

├── tests/                # Playwright test specs
├── playwright.config.ts  # Playwright configuration
├── Dockerfile            # Docker image definition
├── docker-compose.yml    # Compose setup for multiple runs
├── results/              # JSON reports
├── test-results/         # Screenshots & videos
└── playwright-report/    # HTML report

▶️ Running Tests Locally

To run all Playwright tests on your machine:

npx playwright test

To run specific tests on your machine:

npx playwright test --grep "@smoke"

▶️ Docker (with mount + tags)

To run all Playwright tests:

docker run --rm -v ${PWD}:/app todo-app npx playwright test

To run specific tags:

docker run --rm -v ${PWD}:/app todo-app npx playwright test --grep "@smoke"