@@ -86,7 +86,9 @@ test('init claude agents', async ({ }) => {
8686 } ) ;
8787 expect ( fs . existsSync ( path . join ( baseDir , '.claude' , 'agents' , 'playwright-test-planner.md' ) ) ) . toBe ( true ) ;
8888 expect ( fs . existsSync ( path . join ( baseDir , '.claude' , 'agents' , 'playwright-test-generator.md' ) ) ) . toBe ( true ) ;
89- expect ( fs . existsSync ( path . join ( baseDir , '.claude' , 'agents' , 'playwright-test-healer.md' ) ) ) . toBe ( true ) ;
89+
90+ const healer = fs . readFileSync ( path . join ( baseDir , '.claude' , 'agents' , 'playwright-test-healer.md' ) , 'utf-8' ) ;
91+ expect ( healer ) . toContain ( 'Run all tests using mcp__playwright-test__test_run tool' ) ;
9092} ) ;
9193
9294test ( 'init vscode agents' , async ( { } ) => {
@@ -102,7 +104,11 @@ test('init vscode agents', async ({ }) => {
102104 } ) ;
103105 expect ( fs . existsSync ( path . join ( baseDir , '.github' , 'chatmodes' , '🎭 generator.chatmode.md' ) ) ) . toBe ( true ) ;
104106 expect ( fs . existsSync ( path . join ( baseDir , '.github' , 'chatmodes' , ' 🎭 planner.chatmode.md' ) ) ) . toBe ( true ) ;
105- expect ( fs . existsSync ( path . join ( baseDir , '.github' , 'chatmodes' , '🎭 healer.chatmode.md' ) ) ) . toBe ( true ) ;
107+
108+ const healer = fs . readFileSync ( path . join ( baseDir , '.github' , 'chatmodes' , '🎭 healer.chatmode.md' ) , 'utf-8' ) ;
109+ expect ( healer ) . toContain ( 'Run all tests using playwright-test/test_run tool' ) ;
110+ expect ( healer ) . toContain ( 'For each failing test run playwright-test/test_debug' ) ;
111+
106112 expect ( fs . existsSync ( path . join ( baseDir , '.vscode' , 'mcp.json' ) ) ) . toBe ( true ) ;
107113} ) ;
108114
@@ -119,6 +125,9 @@ test('init opencode agents', async ({ }) => {
119125 } ) ;
120126 expect ( fs . existsSync ( path . join ( baseDir , '.opencode' , 'prompts' , 'playwright-test-planner.md' ) ) ) . toBe ( true ) ;
121127 expect ( fs . existsSync ( path . join ( baseDir , '.opencode' , 'prompts' , 'playwright-test-generator.md' ) ) ) . toBe ( true ) ;
122- expect ( fs . existsSync ( path . join ( baseDir , '.opencode' , 'prompts' , 'playwright-test-healer.md' ) ) ) . toBe ( true ) ;
128+
129+ const healer = fs . readFileSync ( path . join ( baseDir , '.opencode' , 'prompts' , 'playwright-test-healer.md' ) , 'utf-8' ) ;
130+ expect ( healer ) . toContain ( 'Run all tests using playwright-test*test_run tool' ) ;
131+
123132 expect ( fs . existsSync ( path . join ( baseDir , 'opencode.json' ) ) ) . toBe ( true ) ;
124133} ) ;
0 commit comments