Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(assistant-ui): add todo list element tests

Steven Enamakelf789eb5ef4da
diff --git a/app/src/components/assistant-ui/elements/todo-list.test.tsx b/app/src/components/assistant-ui/elements/todo-list.test.tsx
index 9d23fc2046..06ab63ea79 100644
--- a/app/src/components/assistant-ui/elements/todo-list.test.tsx
+++ b/app/src/components/assistant-ui/elements/todo-list.test.tsx
@@ -44,7 +44,8 @@ describe('TodoProgressCard', () => {
expect(toggle).toHaveAttribute('aria-expanded', 'false');
expect(toggle).toHaveTextContent('Write the code');
expect(screen.getByTestId('todo-progress-count')).toHaveTextContent('2/3');
- expect(screen.queryByText('Ship it')).toBeNull();
+ // The steps stay mounted but hidden, so they take no space and are not visible.
+ expect(screen.getByText('Ship it')).not.toBeVisible();
});
it('expanded shows the count label and every step', () => {