Run Playwright test and collect failure artifacts
run_test_and_analyze_failureRuns Playwright tests by tag, gathers failure context and artifacts for analysis, and stops retrying after three attempts to escalate to a human.
Instructions
Run npx playwright test --grep @. Returns passed/failed + resolvedContext (hover/fill/iframe/default) + artifacts for analyze_and_fix_selector. Enforces retry stop-loss: returns shouldStop:true when attemptNumber >= 3, requiring human escalation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Test tag without @ (e.g. AUT-589-1); @ prefix is optional | |
| projectRoot | No | Project root where to run playwright (default: current working directory) | |
| attemptNumber | No | Current attempt number starting at 1. When >= 3, returns shouldStop: true to escalate to human instead of retrying. |