feat(skills): add component-testing agent skill#41738
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Replaces @playwright/experimental-ct-* with story-gallery component testing
that needs no dedicated runtime or bundler integration.
- The gallery is a small user-implemented page (per references/gallery-spec.md)
that exposes window.mount({ story, props }) / window.unmount() and renders
into #root. No framework-specific gallery template to copy.
- A built-in mount(storyId, props?) fixture in @playwright/test navigates to
baseURL and drives window.mount via page.evaluate(..., { exposeFunctions:
true }), so props may carry real callbacks. component.update(props) re-renders
in place and component.unmount() tears down.
- Ships React/Vue references, example stories/specs.
Also removes the standalone init-skills CLI command.
dcd53c7 to
fe188b0
Compare
Test results for "MCP"1 failed 7759 passed, 1249 skipped Merge workflow run. |
Test results for "tests 1"5 flaky50370 passed, 1158 skipped Merge workflow run. |
|
Hi, I'm the Playwright bot and I took a first look at the CI failures here. 🟢 The one failure is a pre-existing flake — this PR looks clearThe latest report (MCP, run DetailsThis PR swaps Pre-existing flake / infra
I'm a first pass, so treat this as a strong hint rather than the last word — but the evidence points squarely at a flake, and a rerun should go green. Triaged by the Playwright bot - agent run |
Summary
playwright-component-testingskill shipped in theplaywrightpackage, replacing@playwright/experimental-ct-*with plain e2e tests against a story gallery: stories colocated with components, a gallery page served by the app's dev server, and amount(storyId)fixture returning a locator. Installed vianpx playwright init-skills.packages/skills, copied intoplaywright/lib/skillsat build time.tests/componentsthat instantiate the templates byte-for-byte (enforced by a sync test).