@@ -356,7 +356,7 @@ describe('DynamicWorkflowMissionControlComponent', () => {
356356 expect ( vi . getTimerCount ( ) ) . toBe ( timerCount ) ;
357357 } ) ;
358358
359- it ( 'shimmers Orchestrating without changing its text or creating a timer' , ( ) => {
359+ it ( 'animates the braille header and shimmers Orchestrating without creating a timer' , ( ) => {
360360 vi . useFakeTimers ( ) ;
361361 vi . setSystemTime ( 0 ) ;
362362 const previousLevel = chalk . level ;
@@ -373,8 +373,11 @@ describe('DynamicWorkflowMissionControlComponent', () => {
373373 vi . setSystemTime ( BRAILLE_SPINNER_INTERVAL_MS ) ;
374374 const after = aggregateLine ( component . render ( 100 ) . join ( '\n' ) ) ;
375375
376- expect ( strip ( after ) ) . toBe ( strip ( before ) ) ;
376+ expect ( strip ( after ) . replace ( / [ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ] / u, '' ) ) . toBe (
377+ strip ( before ) . replace ( / [ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ] / u, '' ) ,
378+ ) ;
377379 expect ( after ) . not . toBe ( before ) ;
380+ expect ( strip ( after ) ) . toMatch ( / [ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ] O r c h e s t r a t i n g / ) ;
378381 expect ( strip ( after ) ) . toContain ( 'Orchestrating' ) ;
379382 expect ( vi . getTimerCount ( ) ) . toBe ( timerCount ) ;
380383 } finally {
@@ -671,8 +674,8 @@ describe('DynamicWorkflowMissionControlComponent', () => {
671674 vi . setSystemTime ( time ) ;
672675 const line = component . render ( 100 ) . find ( ( candidate ) => strip ( candidate ) . includes ( '001' ) ) ;
673676 expect ( line ) . toContain ( chalk . hex ( darkColors . primary ) ( glyph ) ) ;
674- expect ( aggregateLine ( component . render ( 100 ) . join ( '\n' ) ) ) . toContain (
675- chalk . hex ( darkColors . primary ) ( glyph ) ,
677+ expect ( strip ( aggregateLine ( component . render ( 100 ) . join ( '\n' ) ) ) ) . toMatch (
678+ / [ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ] O r c h e s t r a t i n g / ,
676679 ) ;
677680 }
678681
0 commit comments