@@ -320,7 +320,7 @@ describe("FieldLabelWrapperComponent", () => {
320320 container as HTMLElement ,
321321 DISPLAY_NAMES . mockFieldCslp ,
322322 { } ,
323- { timeout : 10000 , interval : 5 }
323+ { timeout : 5000 , interval : 5 } // Reduced timeout from 10s to 5s
324324 ) ;
325325 } ) ;
326326
@@ -339,7 +339,7 @@ describe("FieldLabelWrapperComponent", () => {
339339 container as HTMLElement ,
340340 "visual-builder__field-icon" ,
341341 { } ,
342- { timeout : 10000 , interval : 5 }
342+ { timeout : 5000 , interval : 5 } // Reduced timeout from 10s to 5s
343343 ) ;
344344 } ) ;
345345
@@ -362,7 +362,7 @@ describe("FieldLabelWrapperComponent", () => {
362362 container as HTMLElement ,
363363 "visual-builder__focused-toolbar__field-label-wrapper" ,
364364 { } ,
365- { timeout : 10000 , interval : 5 }
365+ { timeout : 5000 , interval : 5 } // Reduced timeout from 10s to 5s
366366 ) ) as HTMLElement ;
367367
368368 // Wait for disabled class to be applied with fast polling (5ms)
@@ -372,7 +372,7 @@ describe("FieldLabelWrapperComponent", () => {
372372 "visual-builder__focused-toolbar--field-disabled"
373373 ) ;
374374 } ,
375- { timeout : 2000 , interval : 5 }
375+ { timeout : 1000 , interval : 5 } // Reduced timeout from 2s to 1s
376376 ) ;
377377 } ) ;
378378
@@ -391,15 +391,15 @@ describe("FieldLabelWrapperComponent", () => {
391391 container as HTMLElement ,
392392 "visual-builder__focused-toolbar__field-label-wrapper" ,
393393 { } ,
394- { timeout : 10000 , interval : 5 }
394+ { timeout : 5000 , interval : 5 } // Reduced timeout from 10s to 5s
395395 ) ;
396396
397397 // Wait for isFieldDisabled to be called with fast polling (5ms)
398398 await waitFor (
399399 ( ) => {
400400 expect ( isFieldDisabled ) . toHaveBeenCalled ( ) ;
401401 } ,
402- { timeout : 2000 , interval : 5 }
402+ { timeout : 1000 , interval : 5 } // Reduced timeout from 2s to 1s
403403 ) ;
404404
405405 expect ( isFieldDisabled ) . toHaveBeenCalledWith (
@@ -476,7 +476,7 @@ describe("FieldLabelWrapperComponent", () => {
476476 ) ;
477477 expect ( contentTypeIcon ) . not . toBeInTheDocument ( ) ;
478478 } ,
479- { timeout : 5000 }
479+ { timeout : 3000 , interval : 5 } // Reduced timeout from 5s to 3s with faster polling
480480 ) ;
481481 } ) ;
482482
@@ -501,7 +501,7 @@ describe("FieldLabelWrapperComponent", () => {
501501 const button = container . querySelector ( "button" ) ;
502502 expect ( button ) . not . toBeDisabled ( ) ;
503503 } ,
504- { timeout : 15000 }
504+ { timeout : 5000 , interval : 5 } // Reduced timeout from 15s to 5s with faster polling
505505 ) ;
506506
507507 const variantIndicator = container . querySelector (
@@ -525,7 +525,7 @@ describe("FieldLabelWrapperComponent", () => {
525525 container as HTMLElement ,
526526 "visual-builder__focused-toolbar__field-label-wrapper" ,
527527 { } ,
528- { timeout : 10000 , interval : 5 }
528+ { timeout : 5000 , interval : 5 } // Reduced timeout from 10s to 5s
529529 ) ;
530530
531531 // Then check variant indicator is not present
@@ -558,7 +558,7 @@ describe("FieldLabelWrapperComponent", () => {
558558 ) ;
559559 expect ( fieldLabelWrapper ) . toBeInTheDocument ( ) ;
560560 } ,
561- { timeout : 25000 }
561+ { timeout : 5000 , interval : 5 } // Reduced timeout from 25s to 5s with faster polling
562562 ) ;
563563
564564 // Then check for variant class
@@ -571,7 +571,7 @@ describe("FieldLabelWrapperComponent", () => {
571571 "visual-builder__focused-toolbar--variant"
572572 ) ;
573573 } ,
574- { timeout : 5000 }
574+ { timeout : 2000 , interval : 5 } // Reduced timeout from 5s to 2s with faster polling
575575 ) ;
576576 } ) ;
577577
@@ -589,7 +589,7 @@ describe("FieldLabelWrapperComponent", () => {
589589 container as HTMLElement ,
590590 "visual-builder__focused-toolbar__field-label-wrapper" ,
591591 { } ,
592- { timeout : 10000 , interval : 5 }
592+ { timeout : 5000 , interval : 5 } // Reduced timeout from 10s to 5s
593593 ) ) as HTMLElement ;
594594
595595 // Class should be set immediately, no need to wait
0 commit comments