@@ -161,21 +161,17 @@ describe('conductor observability', () => {
161161 parent . addCommand ( createConductorCommands ( ) ) ;
162162 await parent . parseAsync ( [ 'node' , 'stackmemory' , 'conductor' , 'status' ] ) ;
163163
164- // Should render header + 2 rows
165- expect ( consoleSpy ) . toHaveBeenCalledTimes ( 3 ) ;
164+ // Should render header + grid cells + separators
165+ expect ( consoleSpy . mock . calls . length ) . toBeGreaterThan ( 3 ) ;
166166
167- // Header
168- const header = consoleSpy . mock . calls [ 0 ] [ 0 ] as string ;
169- expect ( header ) . toContain ( 'Issue' ) ;
170- expect ( header ) . toContain ( 'Phase' ) ;
171- expect ( header ) . toContain ( 'Tools' ) ;
172-
173- // Check both issues appear (order: STA-485 first since more recent lastUpdate)
174- const allOutput = consoleSpy . mock . calls . map ( ( c ) => c [ 0 ] ) . join ( '\n' ) ;
167+ // Check both issues and phases appear in output
168+ const allOutput = consoleSpy . mock . calls . map ( ( cc ) => cc [ 0 ] ) . join ( '\n' ) ;
169+ expect ( allOutput ) . toContain ( 'Conductor' ) ;
175170 expect ( allOutput ) . toContain ( 'STA-492' ) ;
176171 expect ( allOutput ) . toContain ( 'STA-485' ) ;
177- expect ( allOutput ) . toContain ( 'implementing' ) ;
178- expect ( allOutput ) . toContain ( 'testing' ) ;
172+ // Phase labels are capitalized in new UI
173+ expect ( allOutput ) . toMatch ( / I m p l e m e n t i n g | D e a d | S t a l l e d / ) ;
174+ expect ( allOutput ) . toMatch ( / T e s t i n g | D e a d | S t a l l e d / ) ;
179175 } ) ;
180176 } ) ;
181177
0 commit comments