run-testing-session
Run Testing Session
Overview
Orchestrate the full Playwright testing pipeline by dispatching each stage as a fresh subagent with isolated context. Communication between stages happens through files in docs/playwright-spec-testing/, not session context. Each stage is followed by a dedicated reviewer subagent, and issues are patched by a dedicated fix subagent.
When to Use
- When you want to run the full pipeline end-to-end without context pollution
- When you have a spec (
.featurefile or plain-English test cases) and want tests generated automatically
The skills in skills/ are available for individual invocation. This orchestrator is an optional layer on top.
Prerequisites
- Playwright installed (
./node_modules/.bin/playwright --version) - Target app running at the configured
baseURL - Spec input: a
.featurefile path or pasted test case text
More from lautaroleonhardt/pst
analyze-codebase
Use when starting a Playwright testing session or when project structure is unknown. Scans the project for Playwright config, test conventions, routing, and tech stack. Writes output to docs/playwright-spec-testing/project-context.md.
9plan-tests
Use after explore-app to synthesize an exhaustive, human-reviewable test plan from exploration reports and project context. Reads all exploration/<slug>.md files, parsed-spec.md, and project-context.md. Outputs test-plan.md with full steps, assertions, and assigned test file paths.
9ingest-spec
Use when you have a Gherkin .feature file or plain-English test cases to parse into structured scenarios. Writes output to docs/playwright-spec-testing/parsed-spec.md.
9generate-tests
Use after plan-tests to write a Playwright test for one scenario by mechanically translating test-plan.md into Playwright API calls. Requires docs/playwright-spec-testing/test-plan.md. Writes the test file at the path assigned in the plan.
9debug-test
Use when a Playwright test is failing. Diagnoses the root cause and applies a minimal fix. Requires the failing test file path and the full error output.
9explore-app
Use after ingest-spec to walk through one scenario in the live app and capture real selectors and URLs. Requires a running app and a scenario from docs/playwright-spec-testing/parsed-spec.md. Writes output to docs/playwright-spec-testing/exploration/<scenario-slug>.md.
9