@@ -86,9 +86,7 @@ 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-
90- const healer = fs . readFileSync ( path . join ( baseDir , '.claude' , 'agents' , 'playwright-test-healer.md' ) , 'utf-8' ) ;
91- expect ( healer ) . toContain ( 'Run all tests using test_run tool' ) ;
89+ expect ( fs . existsSync ( path . join ( baseDir , '.claude' , 'agents' , 'playwright-test-healer.md' ) ) ) . toBe ( true ) ;
9290} ) ;
9391
9492test ( 'init vscode agents' , async ( { } ) => {
@@ -104,11 +102,7 @@ test('init vscode agents', async ({ }) => {
104102 } ) ;
105103 expect ( fs . existsSync ( path . join ( baseDir , '.github' , 'chatmodes' , '🎭 generator.chatmode.md' ) ) ) . toBe ( true ) ;
106104 expect ( fs . existsSync ( path . join ( baseDir , '.github' , 'chatmodes' , ' 🎭 planner.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 test_run tool' ) ;
110- expect ( healer ) . toContain ( 'For each failing test run test_debug' ) ;
111-
105+ expect ( fs . existsSync ( path . join ( baseDir , '.github' , 'chatmodes' , '🎭 healer.chatmode.md' ) ) ) . toBe ( true ) ;
112106 expect ( fs . existsSync ( path . join ( baseDir , '.vscode' , 'mcp.json' ) ) ) . toBe ( true ) ;
113107} ) ;
114108
@@ -125,9 +119,6 @@ test('init opencode agents', async ({ }) => {
125119 } ) ;
126120 expect ( fs . existsSync ( path . join ( baseDir , '.opencode' , 'prompts' , 'playwright-test-planner.md' ) ) ) . toBe ( true ) ;
127121 expect ( fs . existsSync ( path . join ( baseDir , '.opencode' , 'prompts' , 'playwright-test-generator.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 test_run tool' ) ;
131-
122+ expect ( fs . existsSync ( path . join ( baseDir , '.opencode' , 'prompts' , 'playwright-test-healer.md' ) ) ) . toBe ( true ) ;
132123 expect ( fs . existsSync ( path . join ( baseDir , 'opencode.json' ) ) ) . toBe ( true ) ;
133124} ) ;
0 commit comments