LabscoMCP early access ↗
microsoft avatar✓ Official

playwright-component-testing

Local tool required★ 97k on GitHub
part of microsoft/playwrightby microsoft

Sets up component tests for React or Vue with plain Playwright: small story files show a component in one state, and a gallery page served by your app's dev server displays them for the tests. It needs no separate component-testing runtime, and it covers moving off Playwright's experimental component-testing packages. Your assistant builds the gallery page for your project, since there is no template to copy.

WHEN TO USE

SCOPE

USE FOR

  • Test a component on its own, with mock data and recorded callbacks.
  • Compare screenshots of each component state.
  • Move a test suite off @playwright/experimental-ct-react or -vue.

NOT FOR

  • Components outside React and Vue: its setup notes cover those two.