fix(cli): rewrite CLI command in installed skills - #42137
Conversation
Skills still document `playwright-cli`, which is fine for GitHub search, but when installed via `npx/yarn/pnpm playwright cli` the examples need the package-manager form. Rewrite at install time and leave skill name / allowed-tools / `.playwright-cli/` alone. Fixes: microsoft#42135 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: f3c49995-a324-4711-b5b6-d4fe2f766e2d
Test results for "MCP"1 failed 8062 passed, 1284 skipped Merge workflow run. |
🟢 The one failure is a pre-existing Firefox flake, unrelated to this PRHi, I'm the Playwright bot and I took a look at the CI failure. The single failure — DetailsOverall: one failed test in the merged MCP report, Firefox-Windows only. Nothing in the diff reaches it. Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
Test results for "tests 1"8 flaky51229 passed, 1190 skipped Merge workflow run. |
When skills are installed through
npx/yarn/pnpm playwright cli(orinit-skills), the examples still saidplaywright-cli, which isn't on PATH after 1.62. Sources keep the bare name so GitHub search still finds them; install rewrites the command to the invoker's package-manager form and leaves skill name, allowed-tools, and.playwright-cli/alone.Fixes #42135