Skip to main content

playwright-component-testing

Write, update, run, and debug Perseus's Playwright component tests: the `*.spec.ts` files that mount a Perseus question in a real browser. Use this skill whenever creating or changing a `*.spec.ts` file or a `*.story.tsx` story, using `renderQuestion()` from `testing/playwright`, adding a fixture to `@internal/playwright` (config/playwright), or when a Playwright test or the "Playwright" CI job fails. Also trigger when the user mentions Playwright, `pnpm pw`, browser tests, component tests, the story gallery, or "this needs a real browser". Do NOT trigger for Jest tests (`*.test.ts(x)`) or Storybook stories (`*.stories.tsx`).

Informations de source

Dépôt
Khan/perseus
Dernière activité de la source
17 novembre 2026 à 19:22
Langue détectée de SKILL.md
anglais
Étoiles
1 600
Forks
375

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
nameplaywright-component-testing
descriptionWrite, update, run, and debug Perseus's Playwright component tests: the `*.spec.ts` files that mount a Perseus question in a real browser. Use this skill whenever creating or changing a `*.spec.ts` file or a `*.story.tsx` story, using `renderQuestion()` from `testing/playwright`, adding a fixture to `@internal/playwright` (config/playwright), or when a Playwright test or the "Playwright" CI job fails. Also trigger when the user mentions Playwright, `pnpm pw`, browser tests, component tests, the story gallery, or "this needs a real browser". Do NOT trigger for Jest tests (`*.test.ts(x)`) or Storybook stories (`*.stories.tsx`).