# Playwright Test Agents
[Agents \| Playwright](https://playwright.dev/docs/test-agents)
```sh
npx playwright init-agents --loop=claude
```
コンテキストとしてシナリオやファイル名を指定すべきだが、以下のような雑な指示でも OK だった。
- `@agent-playwright-test-planner プロジェクトのテスト計画を立てて`
- `@agent-playwright-test-generator テストを実装して`
- `@agent-playwright-test-healer エラーになっているテストを修復して`
```bash
# テスト結果
npx playwright show-report
```
実装からテストを生成しているので、便利だけど理想的ではない気がする。