Skip to content

Commit 2d3c97a

Browse files
authored
chore: keep skills scoped to playwright-cli for now (#39119)
1 parent f864c2e commit 2d3c97a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/playwright/src/mcp/terminal/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ export async function program(packageLocation: string) {
567567

568568
async function installSkills() {
569569
const skillSourceDir = path.join(__dirname, '../../skill');
570-
const skillDestDir = path.join(process.cwd(), '.claude', 'skills', 'playwright');
570+
const skillDestDir = path.join(process.cwd(), '.claude', 'skills', 'playwright-cli');
571571

572572
if (!fs.existsSync(skillSourceDir)) {
573573
console.error('Skills source directory not found:', skillSourceDir);

tests/mcp/cli-misc.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ test('install', async ({ cli, server, mcpBrowser }) => {
4949

5050
test('install-skills', async ({ cli }, testInfo) => {
5151
const { output } = await cli('install-skills');
52-
expect(output).toContain(`Skills installed to .claude${path.sep}skills${path.sep}playwright`);
52+
expect(output).toContain(`Skills installed to .claude${path.sep}skills${path.sep}playwright-cli`);
5353

54-
const skillFile = testInfo.outputPath('.claude', 'skills', 'playwright', 'SKILL.md');
54+
const skillFile = testInfo.outputPath('.claude', 'skills', 'playwright-cli', 'SKILL.md');
5555
expect(fs.existsSync(skillFile)).toBe(true);
5656

57-
const referencesDir = testInfo.outputPath('.claude', 'skills', 'playwright', 'references');
57+
const referencesDir = testInfo.outputPath('.claude', 'skills', 'playwright-cli', 'references');
5858
const references = await fs.promises.readdir(referencesDir);
5959
expect(references.length).toBeGreaterThan(0);
6060
});

0 commit comments

Comments
 (0)