Skip to content

The agent that grows with you

test(dashboard): cover delayed IME fallback after unrelated input

Denis H00516e6e8eda
diff --git a/web/src/lib/pty-composition.test.ts b/web/src/lib/pty-composition.test.ts
index 82b3bd636d8..95429082a64 100644
--- a/web/src/lib/pty-composition.test.ts
+++ b/web/src/lib/pty-composition.test.ts
@@ -35,7 +35,9 @@ describe("createPtyCompositionForwarder", () => {
forwarder.onCompositionEnd("ä");
forwarder.noteTerminalData("x");
- vi.runAllTimers();
+ vi.advanceTimersByTime(15);
+ expect(send).not.toHaveBeenCalled();
+ vi.advanceTimersByTime(1);
expect(send).toHaveBeenCalledExactlyOnceWith("ä");
});