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: use full qualified agent names (#38056)
Pavel Feldman0cc12d333457
diff --git a/examples/todomvc/.claude/agents/pwt-generator.md b/examples/todomvc/.claude/agents/playwright-test-generator.mdsimilarity index 98%rename from examples/todomvc/.claude/agents/pwt-generator.mdrename to examples/todomvc/.claude/agents/playwright-test-generator.mdindex b1fd5934a9..0504c924c6 100644--- a/examples/todomvc/.claude/agents/pwt-generator.md+++ b/examples/todomvc/.claude/agents/playwright-test-generator.md@@ -1,5 +1,5 @@----name: pwt-generator+name: playwright-test-generatordescription: 'Use this agent when you need to create automated browser tests using Playwright Examples: <example>Context: User wants to generate a test for the test plan item. <test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite> <test-name><!-- Name of the test case without the ordinal like "should add two numbers" --></test-name> <test-file><!-- Name of the file to save the test into, like tests/multiplication/should-add-two-numbers.spec.ts --></test-file> <seed-file><!-- Seed file path from test plan --></seed-file> <body><!-- Test case content including steps and expectations --></body></example>'tools: Glob, Grep, Read, LS, mcp__playwright-test__browser_click, mcp__playwright-test__browser_drag, mcp__playwright-test__browser_evaluate, mcp__playwright-test__browser_file_upload, mcp__playwright-test__browser_handle_dialog, mcp__playwright-test__browser_hover, mcp__playwright-test__browser_navigate, mcp__playwright-test__browser_press_key, mcp__playwright-test__browser_select_option, mcp__playwright-test__browser_snapshot, mcp__playwright-test__browser_type, mcp__playwright-test__browser_verify_element_visible, mcp__playwright-test__browser_verify_list_visible, mcp__playwright-test__browser_verify_text_visible, mcp__playwright-test__browser_verify_value, mcp__playwright-test__browser_wait_for, mcp__playwright-test__generator_read_log, mcp__playwright-test__generator_setup_page, mcp__playwright-test__generator_write_testmodel: sonnetdiff --git a/examples/todomvc/.claude/agents/pwt-healer.md b/examples/todomvc/.claude/agents/playwright-test-healer.mdsimilarity index 98%rename from examples/todomvc/.claude/agents/pwt-healer.mdrename to examples/todomvc/.claude/agents/playwright-test-healer.mdindex 946b92d865..b66280f03c 100644--- a/examples/todomvc/.claude/agents/pwt-healer.md+++ b/examples/todomvc/.claude/agents/playwright-test-healer.md@@ -1,5 +1,5 @@----name: pwt-healer+name: playwright-test-healerdescription: Use this agent when you need to debug and fix failing Playwright teststools: Glob, Grep, Read, LS, Edit, MultiEdit, Write, mcp__playwright-test__browser_console_messages, mcp__playwright-test__browser_evaluate, mcp__playwright-test__browser_generate_locator, mcp__playwright-test__browser_network_requests, mcp__playwright-test__browser_snapshot, mcp__playwright-test__test_debug, mcp__playwright-test__test_list, mcp__playwright-test__test_runmodel: sonnetdiff --git a/examples/todomvc/.claude/agents/pwt-planner.md b/examples/todomvc/.claude/agents/playwright-test-planner.mdsimilarity index 99%rename from examples/todomvc/.claude/agents/pwt-planner.mdrename to examples/todomvc/.claude/agents/playwright-test-planner.mdindex 4daa45f186..da10326eb9 100644--- a/examples/todomvc/.claude/agents/pwt-planner.md+++ b/examples/todomvc/.claude/agents/playwright-test-planner.md@@ -1,5 +1,5 @@----name: pwt-planner+name: playwright-test-plannerdescription: Use this agent when you need to create comprehensive test plan for a web application or websitetools: Glob, Grep, Read, LS, Edit, MultiEdit, Write, mcp__playwright-test__browser_click, mcp__playwright-test__browser_close, mcp__playwright-test__browser_console_messages, mcp__playwright-test__browser_drag, mcp__playwright-test__browser_evaluate, mcp__playwright-test__browser_file_upload, mcp__playwright-test__browser_handle_dialog, mcp__playwright-test__browser_hover, mcp__playwright-test__browser_navigate, mcp__playwright-test__browser_navigate_back, mcp__playwright-test__browser_network_requests, mcp__playwright-test__browser_press_key, mcp__playwright-test__browser_select_option, mcp__playwright-test__browser_snapshot, mcp__playwright-test__browser_take_screenshot, mcp__playwright-test__browser_type, mcp__playwright-test__browser_wait_for, mcp__playwright-test__planner_setup_pagemodel: sonnetdiff --git a/examples/todomvc/.claude/prompts/pwt-coverage.md b/examples/todomvc/.claude/prompts/playwright-test-coverage.mdsimilarity index 84%rename from examples/todomvc/.claude/prompts/pwt-coverage.mdrename to examples/todomvc/.claude/prompts/playwright-test-coverage.mdindex 04e4f811fb..e5b6f26c22 100644--- a/examples/todomvc/.claude/prompts/pwt-coverage.md+++ b/examples/todomvc/.claude/prompts/playwright-test-coverage.md@@ -8,7 +8,7 @@ Parameters:- Seed file (optional): the seed file to use, defaults to `tests/seed.spec.ts`- Test plan file (optional): the test plan file to write, under `specs/` folder.-1. Call #pwt-planner subagent with prompt:+1. Call #playwright-test-planner subagent with prompt:<plan><task-text><!-- the task --></task-text>@@ -16,7 +16,7 @@ Parameters:<plan-file><!-- path to test plan file to generate --></plan-file></plan>-2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #pwt-generator subagent with prompt:+2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #playwright-test-generator subagent with prompt:<generate><test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite>@@ -26,6 +26,6 @@ Parameters:<body><!-- Test case content including steps and expectations --></body></generate>-3. Call #pwt-healer subagent with prompt:+3. Call #playwright-test-healer subagent with prompt:<heal>Run all tests and fix the failing ones one after another.</heal>diff --git a/examples/todomvc/.claude/prompts/pwt-generate.md b/examples/todomvc/.claude/prompts/playwright-test-generate.mdsimilarity index 81%rename from examples/todomvc/.claude/prompts/pwt-generate.mdrename to examples/todomvc/.claude/prompts/playwright-test-generate.mdindex b92662678c..335e9fd8ad 100644--- a/examples/todomvc/.claude/prompts/pwt-generate.md+++ b/examples/todomvc/.claude/prompts/playwright-test-generate.md@@ -1,5 +1,5 @@----agent: pwt-generator+agent: playwright-test-generatordescription: Generate test plan---diff --git a/packages/playwright/src/agents/pwt-heal.prompt.md b/examples/todomvc/.claude/prompts/playwright-test-heal.mdsimilarity index 71%rename from packages/playwright/src/agents/pwt-heal.prompt.mdrename to examples/todomvc/.claude/prompts/playwright-test-heal.mdindex 2fb1bc63ce..f1ca0c67f4 100644--- a/packages/playwright/src/agents/pwt-heal.prompt.md+++ b/examples/todomvc/.claude/prompts/playwright-test-heal.md@@ -1,5 +1,5 @@----agent: pwt-healer+agent: playwright-test-healerdescription: Fix tests---diff --git a/examples/todomvc/.claude/prompts/pwt-plan.md b/examples/todomvc/.claude/prompts/playwright-test-plan.mdsimilarity index 84%rename from examples/todomvc/.claude/prompts/pwt-plan.mdrename to examples/todomvc/.claude/prompts/playwright-test-plan.mdindex 32452abcd5..1c1f3a1871 100644--- a/examples/todomvc/.claude/prompts/pwt-plan.md+++ b/examples/todomvc/.claude/prompts/playwright-test-plan.md@@ -1,5 +1,5 @@----agent: pwt-planner+agent: playwright-test-plannerdescription: Create test plan---diff --git a/examples/todomvc/.github/agents/pwt-generator.agent.md b/examples/todomvc/.github/agents/playwright-test-generator.agent.mdsimilarity index 99%rename from examples/todomvc/.github/agents/pwt-generator.agent.mdrename to examples/todomvc/.github/agents/playwright-test-generator.agent.mdindex 800407b47a..e52ddbf616 100644--- a/examples/todomvc/.github/agents/pwt-generator.agent.md+++ b/examples/todomvc/.github/agents/playwright-test-generator.agent.md@@ -1,5 +1,5 @@----name: pwt-generator+name: playwright-test-generatordescription: 'Use this agent when you need to create automated browser testsusing Playwright Examples: <example>Context: User wants to generate a test forthe test plan item. <test-suite><!-- Verbatim name of the test spec group w/odiff --git a/examples/todomvc/.github/agents/pwt-healer.agent.md b/examples/todomvc/.github/agents/playwright-test-healer.agent.mdsimilarity index 98%rename from examples/todomvc/.github/agents/pwt-healer.agent.mdrename to examples/todomvc/.github/agents/playwright-test-healer.agent.mdindex a7092019fc..a77d07b45a 100644--- a/examples/todomvc/.github/agents/pwt-healer.agent.md+++ b/examples/todomvc/.github/agents/playwright-test-healer.agent.md@@ -1,5 +1,5 @@----name: pwt-healer+name: playwright-test-healerdescription: Use this agent when you need to debug and fix failing Playwright teststools:- searchdiff --git a/examples/todomvc/.github/agents/pwt-planner.agent.md b/examples/todomvc/.github/agents/playwright-test-planner.agent.mdsimilarity index 99%rename from examples/todomvc/.github/agents/pwt-planner.agent.mdrename to examples/todomvc/.github/agents/playwright-test-planner.agent.mdindex 44f8cb6539..8c51e58c8e 100644--- a/examples/todomvc/.github/agents/pwt-planner.agent.md+++ b/examples/todomvc/.github/agents/playwright-test-planner.agent.md@@ -1,5 +1,5 @@----name: pwt-planner+name: playwright-test-plannerdescription: Use this agent when you need to create comprehensive test plan fora web application or websitetools:diff --git a/examples/todomvc/.github/prompts/pwt-coverage.prompt.md b/examples/todomvc/.github/prompts/playwright-test-coverage.prompt.mdsimilarity index 84%rename from examples/todomvc/.github/prompts/pwt-coverage.prompt.mdrename to examples/todomvc/.github/prompts/playwright-test-coverage.prompt.mdindex 7fd4491384..7852aa803a 100644--- a/examples/todomvc/.github/prompts/pwt-coverage.prompt.md+++ b/examples/todomvc/.github/prompts/playwright-test-coverage.prompt.md@@ -8,7 +8,7 @@ Parameters:- Seed file (optional): the seed file to use, defaults to `tests/seed.spec.ts`- Test plan file (optional): the test plan file to write, under `specs/` folder.-1. Call #pwt-planner subagent with prompt:+1. Call #playwright-test-planner subagent with prompt:<plan><task-text><!-- the task --></task-text>@@ -16,7 +16,7 @@ Parameters:<plan-file><!-- path to test plan file to generate --></plan-file></plan>-2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #pwt-generator subagent with prompt:+2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #playwright-test-generator subagent with prompt:<generate><test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite>@@ -26,6 +26,6 @@ Parameters:<body><!-- Test case content including steps and expectations --></body></generate>-3. Call #pwt-healer subagent with prompt:+3. Call #playwright-test-healer subagent with prompt:<heal>Run all tests and fix the failing ones one after another.</heal>diff --git a/packages/playwright/src/agents/pwt-generate.prompt.md b/examples/todomvc/.github/prompts/playwright-test-generate.prompt.mdsimilarity index 81%rename from packages/playwright/src/agents/pwt-generate.prompt.mdrename to examples/todomvc/.github/prompts/playwright-test-generate.prompt.mdindex b92662678c..335e9fd8ad 100644--- a/packages/playwright/src/agents/pwt-generate.prompt.md+++ b/examples/todomvc/.github/prompts/playwright-test-generate.prompt.md@@ -1,5 +1,5 @@----agent: pwt-generator+agent: playwright-test-generatordescription: Generate test plan---diff --git a/examples/todomvc/.claude/prompts/pwt-heal.md b/examples/todomvc/.github/prompts/playwright-test-heal.prompt.mdsimilarity index 71%rename from examples/todomvc/.claude/prompts/pwt-heal.mdrename to examples/todomvc/.github/prompts/playwright-test-heal.prompt.mdindex 2fb1bc63ce..f1ca0c67f4 100644--- a/examples/todomvc/.claude/prompts/pwt-heal.md+++ b/examples/todomvc/.github/prompts/playwright-test-heal.prompt.md@@ -1,5 +1,5 @@----agent: pwt-healer+agent: playwright-test-healerdescription: Fix tests---diff --git a/examples/todomvc/.github/prompts/pwt-plan.prompt.md b/examples/todomvc/.github/prompts/playwright-test-plan.prompt.mdsimilarity index 84%rename from examples/todomvc/.github/prompts/pwt-plan.prompt.mdrename to examples/todomvc/.github/prompts/playwright-test-plan.prompt.mdindex 32452abcd5..1c1f3a1871 100644--- a/examples/todomvc/.github/prompts/pwt-plan.prompt.md+++ b/examples/todomvc/.github/prompts/playwright-test-plan.prompt.md@@ -1,5 +1,5 @@----agent: pwt-planner+agent: playwright-test-plannerdescription: Create test plan---diff --git a/examples/todomvc/prompts/README.md b/examples/todomvc/prompts/README.mddeleted file mode 100644index 2457872099..0000000000--- a/examples/todomvc/prompts/README.md+++ /dev/null@@ -1,3 +0,0 @@-# Prompts--This is a directory for useful prompts.diff --git a/packages/playwright/src/agents/generateAgents.ts b/packages/playwright/src/agents/generateAgents.tsindex 6271fe9f0e..5184c6a9cd 100644--- a/packages/playwright/src/agents/generateAgents.ts+++ b/packages/playwright/src/agents/generateAgents.ts@@ -118,10 +118,6 @@ export class ClaudeGenerator {for (const agent of agents)await writeFile(`.claude/agents/${agent.header.name}.md`, ClaudeGenerator.agentSpec(agent), '🤖', 'agent definition');- await deleteFile(`.claude/agents/playwright-test-planner.md`, 'legacy planner agent');- await deleteFile(`.claude/agents/playwright-test-generator.md`, 'legacy generator agent');- await deleteFile(`.claude/agents/playwright-test-healer.md`, 'legacy healer agent');-await writeFile('.mcp.json', JSON.stringify({mcpServers: {'playwright-test': {@@ -180,10 +176,6 @@ export class OpencodeGenerator {await writeFile(`.opencode/prompts/${agent.header.name}.md`, prompt.join('\n'), '🤖', 'agent definition');}- await deleteFile(`.opencode/prompts/playwright-test-planner.md`, 'legacy planner agent');- await deleteFile(`.opencode/prompts/playwright-test-generator.md`, 'legacy generator agent');- await deleteFile(`.opencode/prompts/playwright-test-healer.md`, 'legacy healer agent');-await writeFile('opencode.json', OpencodeGenerator.configuration(agents), '🔧', 'opencode configuration');initRepoDone();diff --git a/packages/playwright/src/agents/pwt-coverage.prompt.md b/packages/playwright/src/agents/playwright-test-coverage.prompt.mdsimilarity index 84%rename from packages/playwright/src/agents/pwt-coverage.prompt.mdrename to packages/playwright/src/agents/playwright-test-coverage.prompt.mdindex b207d398d5..4845192042 100644--- a/packages/playwright/src/agents/pwt-coverage.prompt.md+++ b/packages/playwright/src/agents/playwright-test-coverage.prompt.md@@ -8,7 +8,7 @@ Parameters:- Seed file (optional): the seed file to use, defaults to `${seedFile}`- Test plan file (optional): the test plan file to write, under `specs/` folder.-1. Call #pwt-planner subagent with prompt:+1. Call #playwright-test-planner subagent with prompt:<plan><task-text><!-- the task --></task-text>@@ -16,7 +16,7 @@ Parameters:<plan-file><!-- path to test plan file to generate --></plan-file></plan>-2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #pwt-generator subagent with prompt:+2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #playwright-test-generator subagent with prompt:<generate><test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite>@@ -26,6 +26,6 @@ Parameters:<body><!-- Test case content including steps and expectations --></body></generate>-3. Call #pwt-healer subagent with prompt:+3. Call #playwright-test-healer subagent with prompt:<heal>Run all tests and fix the failing ones one after another.</heal>diff --git a/examples/todomvc/.github/prompts/pwt-generate.prompt.md b/packages/playwright/src/agents/playwright-test-generate.prompt.mdsimilarity index 81%rename from examples/todomvc/.github/prompts/pwt-generate.prompt.mdrename to packages/playwright/src/agents/playwright-test-generate.prompt.mdindex b92662678c..335e9fd8ad 100644--- a/examples/todomvc/.github/prompts/pwt-generate.prompt.md+++ b/packages/playwright/src/agents/playwright-test-generate.prompt.md@@ -1,5 +1,5 @@----agent: pwt-generator+agent: playwright-test-generatordescription: Generate test plan---diff --git a/packages/playwright/src/agents/pwt-generator.agent.md b/packages/playwright/src/agents/playwright-test-generator.agent.mdsimilarity index 99%rename from packages/playwright/src/agents/pwt-generator.agent.mdrename to packages/playwright/src/agents/playwright-test-generator.agent.mdindex 4956063a10..b5b49d04ba 100644--- a/packages/playwright/src/agents/pwt-generator.agent.md+++ b/packages/playwright/src/agents/playwright-test-generator.agent.md@@ -1,5 +1,5 @@----name: pwt-generator+name: playwright-test-generatordescription: Use this agent when you need to create automated browser tests using Playwrightmodel: sonnetcolor: bluediff --git a/examples/todomvc/.github/prompts/pwt-heal.prompt.md b/packages/playwright/src/agents/playwright-test-heal.prompt.mdsimilarity index 71%rename from examples/todomvc/.github/prompts/pwt-heal.prompt.mdrename to packages/playwright/src/agents/playwright-test-heal.prompt.mdindex 2fb1bc63ce..f1ca0c67f4 100644--- a/examples/todomvc/.github/prompts/pwt-heal.prompt.md+++ b/packages/playwright/src/agents/playwright-test-heal.prompt.md@@ -1,5 +1,5 @@----agent: pwt-healer+agent: playwright-test-healerdescription: Fix tests---diff --git a/packages/playwright/src/agents/pwt-healer.agent.md b/packages/playwright/src/agents/playwright-test-healer.agent.mdsimilarity index 98%rename from packages/playwright/src/agents/pwt-healer.agent.mdrename to packages/playwright/src/agents/playwright-test-healer.agent.mdindex dd1b3a103b..97acadceae 100644--- a/packages/playwright/src/agents/pwt-healer.agent.md+++ b/packages/playwright/src/agents/playwright-test-healer.agent.md@@ -1,5 +1,5 @@----name: pwt-healer+name: playwright-test-healerdescription: Use this agent when you need to debug and fix failing Playwright testsmodel: sonnetcolor: reddiff --git a/packages/playwright/src/agents/pwt-plan.prompt.md b/packages/playwright/src/agents/playwright-test-plan.prompt.mdsimilarity index 84%rename from packages/playwright/src/agents/pwt-plan.prompt.mdrename to packages/playwright/src/agents/playwright-test-plan.prompt.mdindex 5fa1a6ad29..18e1c90028 100644--- a/packages/playwright/src/agents/pwt-plan.prompt.md+++ b/packages/playwright/src/agents/playwright-test-plan.prompt.md@@ -1,5 +1,5 @@----agent: pwt-planner+agent: playwright-test-plannerdescription: Create test plan---diff --git a/packages/playwright/src/agents/pwt-planner.agent.md b/packages/playwright/src/agents/playwright-test-planner.agent.mdsimilarity index 99%rename from packages/playwright/src/agents/pwt-planner.agent.mdrename to packages/playwright/src/agents/playwright-test-planner.agent.mdindex 08a2231b98..f74ccfdccd 100644--- a/packages/playwright/src/agents/pwt-planner.agent.md+++ b/packages/playwright/src/agents/playwright-test-planner.agent.md@@ -1,5 +1,5 @@----name: pwt-planner+name: playwright-test-plannerdescription: Use this agent when you need to create comprehensive test plan for a web application or websitemodel: sonnetcolor: green