Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: restore workspaceFolder cwd in vscode agents (#37658)
Pavel Feldmanab42d1d62624
diff --git a/examples/todomvc/.vscode/mcp.json b/examples/todomvc/.vscode/mcp.jsonindex f0c78a8aab..df015d2ffa 100644--- a/examples/todomvc/.vscode/mcp.json+++ b/examples/todomvc/.vscode/mcp.json@@ -6,7 +6,8 @@"args": ["playwright","run-test-mcp-server"- ]+ ],+ "cwd": "${workspaceFolder}"}},"inputs": []diff --git a/packages/playwright/src/agents/generateAgents.ts b/packages/playwright/src/agents/generateAgents.tsindex b99cb5bd0f..7fe10b7619 100644--- a/packages/playwright/src/agents/generateAgents.ts+++ b/packages/playwright/src/agents/generateAgents.ts@@ -276,7 +276,8 @@ export async function initVSCodeRepo() {mcpJson.servers['playwright-test'] = {type: 'stdio',command: commonMcpServers.playwrightTest.command,- args: commonMcpServers.playwrightTest.args+ args: commonMcpServers.playwrightTest.args,+ cwd: '${workspaceFolder}',};await writeFile(mcpJsonPath, JSON.stringify(mcpJson, null, 2));}