What problem does it solve?
Documentation examples for AG Grid need meaningful Playwright test coverage, but writing cross-framework e2e tests by hand is slow and error-prone. This Skill automates discovering examples on a docs page, planning assertions from the doc prose and source code, writing example.spec.ts files, and running them against every framework.
Core Features & Use Cases
- Example Discovery and Planning: Reads a docs page's index.mdoc and _examples/ directory, analyzes each example's main.ts and data files, and builds an approval-gated test plan covering every documented behaviour.
- Deterministic Test Authoring: Generates example.spec.ts tests using agIdFor locators, web-first assertions, and deterministic waits (waitForRowAnimations, toPass) instead of flaky fixed timeouts, guided by a 12-pitfall reference for grouping, aggregation, tree data, sorting, and virtual scrolling.
- Cross-Framework Verification: Runs specs via docs-e2e.sh against typescript, vanilla, reactFunctionalTs, angular, and vue3 in chromium, with --last-failed iteration for fast fix loops.
- Use Case: Ask to add tests for the aggregation-total-rows docs page, and the Skill plans assertions per example, writes the spec files, runs them across all frameworks, and iterates until green.
Quick Start
Write Playwright tests for all examples on the aggregation-total-rows docs page and run them with docs-e2e.sh until they pass.