This project automates testing of a sample To‑do App using Playwright inside Docker.
It demonstrates scalable test execution, tagging (@smoke, @regression).
- 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
- Docker Desktop installed (Optional)
- Node.js & npm installed (for local Playwright usage)
- Git (optional, for version control)
├── 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
To run all Playwright tests on your machine:
npx playwright testTo run specific tests on your machine:
npx playwright test --grep "@smoke"To run all Playwright tests:
docker run --rm -v ${PWD}:/app todo-app npx playwright testTo run specific tags:
docker run --rm -v ${PWD}:/app todo-app npx playwright test --grep "@smoke"