Skip to content
Kitbay
Submit

playwright-component-testing

Apache-2.0Updated on Nov 11, 202699,846GitHub stars

playwright-component-testing is a skill kept with the playwright-core package sources that guides an agent through testing React or Vue components with ordinary Playwright end-to-end tests.

What the skill teaches

playwright-component-testing is a skill kept with the playwright-core package sources that guides an agent through testing React or Vue components with ordinary Playwright end-to-end tests. Each scenario is written as a small story file next to the component, and one gallery page served by the application's own dev server mounts those stories; tests then call Playwright's built-in mount fixture and make assertions through the page. The skill bundles reference notes for React, Vue, typing and the gallery contract, sample story and spec templates, and guidance for moving off the experimental component-testing packages.

Capabilities

  • Set up component tests for React or Vue with a story gallery page
  • Scaffold story files and matching Playwright specs
  • Migrate from the experimental component-testing packages