Skip to content

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

TypeScript

test(desktop-app): cover R1-L1 overlay signal drop on failure-dialog dismiss

Diego Zacarias3e70c222dfba
diff --git a/desktop-app/ui/src/__tests__/App.deepLinks.test.tsx b/desktop-app/ui/src/__tests__/App.deepLinks.test.tsx
index bb8c2309b..2f7334abd 100644
--- a/desktop-app/ui/src/__tests__/App.deepLinks.test.tsx
+++ b/desktop-app/ui/src/__tests__/App.deepLinks.test.tsx
@@ -678,6 +678,14 @@ describe('App deep-link orchestration', () => {
expect(confirmDialogHarness.props?.title).toBe('App link could not be opened')
)
expect(sandboxUiPageHarness.props?.deepLinkOverlayOpen).toBe(true)
+
+ await act(async () => {
+ confirmDialogHarness.props?.onCancel()
+ await Promise.resolve()
+ })
+
+ await waitFor(() => expect(acknowledgeDeepLink).toHaveBeenCalledWith(1))
+ await waitFor(() => expect(sandboxUiPageHarness.props?.deepLinkOverlayOpen).toBe(false))
})
it('does not duplicate an authenticated confirmation for the same link id', async () => {