What problem does it solve?
Automates testing of local web applications using Playwright. This Skill provides a Playwright-based framework to automate frontend tests, capture screenshots, and inspect browser logs to streamline QA on your local environment.
Core Features & Use Cases
- Automated UI testing: Validate frontend behavior across pages and states using Playwright scripts.
- Evidence capture: Automatically save screenshots and logs to document test results.
- Local-server testing: Easily run tests against a locally started server via the included with_server.py helper.
Quick Start
Install Python 3.x and Playwright, initialize browsers, and run a simple test script. Example commands:
- pip install playwright
- python -m playwright install
- Create a test script under scripts/ (e.g., tests/ui_test.py) and run: python scripts/ui_test.py
- To run tests against a local server: python scripts/with_server.py --server "npm run dev" --port 5173 -- python tests/ui_test.py