@@ -338,7 +338,11 @@ test('component lint reports missing button type prop', async ({ page }) => {
338338
339339 await runComponentLint ( page )
340340
341- await waitForLintDiagnosticsIssues ( page )
341+ await waitForLintDiagnosticsIssues ( page , {
342+ rerunLint : async ( ) => {
343+ await runComponentLint ( page )
344+ } ,
345+ } )
342346 await expect ( page . getByText ( / a 1 1 y \/ u s e B u t t o n T y p e / ) ) . toBeVisible ( )
343347} )
344348
@@ -353,7 +357,11 @@ test('styles diagnostics rows navigate editor to reported line', async ({ page }
353357
354358 await runStylesLint ( page )
355359
356- await waitForLintDiagnosticsIssues ( page )
360+ await waitForLintDiagnosticsIssues ( page , {
361+ rerunLint : async ( ) => {
362+ await runStylesLint ( page )
363+ } ,
364+ } )
357365
358366 const targetDiagnostic = page . getByRole ( 'button' , { name : / ^ L 3 ( : \d + ) ? \s / } ) . first ( )
359367 await expect ( targetDiagnostic ) . toBeVisible ( )
@@ -371,7 +379,11 @@ test('styles lint reports CSS syntax errors', async ({ page }) => {
371379
372380 await runStylesLint ( page )
373381
374- await waitForLintDiagnosticsIssues ( page )
382+ await waitForLintDiagnosticsIssues ( page , {
383+ rerunLint : async ( ) => {
384+ await runStylesLint ( page )
385+ } ,
386+ } )
375387 await expect ( page . locator ( '#diagnostics-styles' ) ) . toContainText (
376388 'Biome reported issues.' ,
377389 )
0 commit comments