Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: await Brain thread drawer hydration before asserting its fields

[._.]/ Adam Eivy16cf800b5e06
diff --git a/client/src/components/brain/tabs/ThreadsTab.test.jsx b/client/src/components/brain/tabs/ThreadsTab.test.jsx
index e04889e56c..84b7de3f0b 100644
--- a/client/src/components/brain/tabs/ThreadsTab.test.jsx
+++ b/client/src/components/brain/tabs/ThreadsTab.test.jsx
@@ -85,7 +85,8 @@ describe('ThreadsTab', () => {
fireEvent.click(await screen.findByText('Plain loop'));
expect(screen.getByTestId('location').textContent).toBe('?thread=op');
await screen.findByRole('dialog');
- expect(screen.getByDisplayValue('Call back')).toBeTruthy();
+ // The drawer shell mounts before its asynchronous record hydration.
+ expect(await screen.findByDisplayValue('Call back')).toBeTruthy();
});
it('checks a thread off in place without refetching the list', async () => {