Skip to content

Commit 3c4fa4a

Browse files
author
StackMemory Bot (CLI)
committed
fix(test): update conductor observability test for new status UI format
1 parent 8b9227e commit 3c4fa4a

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/cli/commands/__tests__/conductor-observability.test.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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(/Implementing|Dead|Stalled/);
174+
expect(allOutput).toMatch(/Testing|Dead|Stalled/);
179175
});
180176
});
181177

0 commit comments

Comments
 (0)