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`).
来源信息
- 仓库
- Khan/perseus
- 最近来源活动
- 2026年11月17日 19:22
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1,600
- Forks
- 375
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
| name | playwright-component-testing |
|---|---|
| description | 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`). |