How pavanoltraining/poc_playwright_agents_saucedemo works
This is a proof-of-concept for AI-assisted Playwright testing of SauceDemo, not the e-commerce application itself. The workflow starts with requirements, turns them into a test plan and end-to-end specs, runs those specs against SauceDemo in a browser, and can use an agent to repair failures. The graph also preserves the documented planning, generation, validation, and healing capabilities. Source excerpts cover only the package and Playwright configuration, so links between the other workflow components rely on README statements rather than inspected implementation.
Main entry points: playwright-test-generator.agent.md Spec generator · playwright.config.ts Playwright runner · playwright-test-healer.agent.md Test healer · login-with-valid-credentials.spec.ts Login test
Components 13
Planning
- Shopping requirements
SauceDemo_PRD.md - Journey test plan
specs/sauce-demo-core-user-operations.plan.md
Test agents
- Test planner
.github/agents/playwright-test-planner.agent.md - Spec generator
.github/agents/playwright-test-generator.agent.md - Test healer
.github/agents/playwright-test-healer.agent.md
Test execution
- Login test
tests/login-with-valid-credentials.spec.ts - Browse and add
tests/browse-products-and-add-to-cart.spec.ts - Cart changes
tests/view-cart-and-modify-order.spec.ts - Purchase checkout
tests/checkout-with-required-information-and-complete-purchase.spec.ts - Logout and reset
tests/logout-and-reset-application-state.spec.ts - Playwright runner
playwright.config.ts
Other components
- Test author
- SauceDemo
Connections 25
- Test author → Shopping requirements: defines needs
README.md - Shopping requirements → Test planner: guides planning
README.md - Test planner → Journey test plan: creates plan
README.md - Journey test plan → Spec generator: guides generation
README.md - Spec generator → Login test: generates specs
README.md - Spec generator → Browse and add: generates specs
README.md - Spec generator → Cart changes: generates specs
README.md - Spec generator → Purchase checkout: generates specs
README.md - Spec generator → Logout and reset: generates specs
README.md - Test author → Playwright runner: starts tests
README.md - Playwright runner → Login test: runs tests
playwright.config.ts - Playwright runner → Browse and add: runs tests
playwright.config.ts - Playwright runner → Cart changes: runs tests
playwright.config.ts - Playwright runner → Purchase checkout: runs tests
playwright.config.ts - Playwright runner → Logout and reset: runs tests
playwright.config.ts - Login test → SauceDemo: validates journey
README.md - Browse and add → SauceDemo: validates journey
README.md - Cart changes → SauceDemo: validates journey
README.md - Purchase checkout → SauceDemo: validates journey
README.md - Logout and reset → SauceDemo: validates journey
README.md - Test healer → Login test: repairs failures
README.md - Test healer → Browse and add: repairs failures
README.md - Test healer → Cart changes: repairs failures
README.md - Test healer → Purchase checkout: repairs failures
README.md - Test healer → Logout and reset: repairs failures
README.md