Run Playwright E2E tests
run_e2e_testsRun Playwright tests with optional dev server startup and get structured per-test pass/fail results with error messages.
Instructions
Spins up the dev server (if configured in playwright.config), runs Playwright tests, and returns structured pass/fail results per test with error messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headed | No | Run in headed mode (useful for debugging) | |
| project_dir | Yes | Absolute path to the project root | |
| start_server | No | Whether to let Playwright use the webServer config in playwright.config to start the dev server automatically | |
| test_pattern | No | Glob or file path to filter tests, e.g. 'tests/auth.spec.ts' | |
| timeout_seconds | No | Max seconds before the run is killed |