Skip to content

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

fix(test): update test to match new background process panel behavior

Steven Enamakel49d047395f3c
diff --git a/app/src/features/conversations/components/__tests__/BackgroundProcessesPanel.test.tsx b/app/src/features/conversations/components/__tests__/BackgroundProcessesPanel.test.tsx
index 8cf7506ada..d275f0c935 100644
--- a/app/src/features/conversations/components/__tests__/BackgroundProcessesPanel.test.tsx
+++ b/app/src/features/conversations/components/__tests__/BackgroundProcessesPanel.test.tsx
@@ -177,7 +177,9 @@ describe('BackgroundProcessesPanel', () => {
render(
<BackgroundProcessesPanel open processes={procs} onClose={onClose} onOpenProcess={vi.fn()} />
);
- fireEvent.keyDown(window, { key: 'Escape' });
+ // Radix's dismissable layer listens on the owning `document`, not on
+ // `window` — an event dispatched on `window` never reaches `document`.
+ fireEvent.keyDown(document, { key: 'Escape' });
expect(onClose).toHaveBeenCalled();
});