Skip to content

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

TypeScript

test(desktop): wait for route persistence in ownership test

Josué1774ad2ee75b
diff --git a/desktop-app/ui/src/__tests__/App.sandboxUiOwnership.test.tsx b/desktop-app/ui/src/__tests__/App.sandboxUiOwnership.test.tsx
index f60f0d08a..29e7982a5 100644
--- a/desktop-app/ui/src/__tests__/App.sandboxUiOwnership.test.tsx
+++ b/desktop-app/ui/src/__tests__/App.sandboxUiOwnership.test.tsx
@@ -546,7 +546,7 @@ describe('App wires gestures and main events to the embed ownership machine', ()
await flushMacrotask()
expect(sandboxUi.close).toHaveBeenCalledWith({ launchId: first })
- expect(tabOf(ALPHA!.appRef)?.app?.savedRoutePath).toBe('/inbox')
+ await waitFor(() => expect(tabOf(ALPHA!.appRef)?.app?.savedRoutePath).toBe('/inbox'))
fireEvent.click(screen.getByRole('button', { name: 'Alpha', pressed: false }))
await waitFor(() => expect(sandboxUi.open).toHaveBeenCalledTimes(2))