Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(desktop-app): r8-l32 await scoped folder cache purge

Josué04eed873b38a
diff --git a/desktop-app/ui/src/hooks/domain/__tests__/useGfsBrowserController.test.tsx b/desktop-app/ui/src/hooks/domain/__tests__/useGfsBrowserController.test.tsx
index 9b2aa3d56..7bbdc4527 100644
--- a/desktop-app/ui/src/hooks/domain/__tests__/useGfsBrowserController.test.tsx
+++ b/desktop-app/ui/src/hooks/domain/__tests__/useGfsBrowserController.test.tsx
@@ -2203,7 +2203,7 @@ describe('useGfsBrowserController', () => {
)
expect(screen.getByTestId('access-state').textContent).toBe('active')
expect(screen.getByTestId('accessible-count').textContent).toBe('1')
- expect(lastHarnessQueryClient?.getQueryData(childrenKey)).toBeUndefined()
+ await waitFor(() => expect(lastHarnessQueryClient?.getQueryData(childrenKey)).toBeUndefined())
})
it('does not let an old folder denial cancel a pending destination navigation', async () => {