Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Await terminal replay notice removal in the DOM test (#5533)

Nick Gomez2c75ace2d4e1
diff --git a/packages/app/src/components/TerminalPanel.dom.test.tsx b/packages/app/src/components/TerminalPanel.dom.test.tsx
index c8764e383..99d3e97e9 100644
--- a/packages/app/src/components/TerminalPanel.dom.test.tsx
+++ b/packages/app/src/components/TerminalPanel.dom.test.tsx
@@ -539,7 +539,7 @@ describe('TerminalPanel', () => {
await waitFor(() => expect(terminal.adopt).toHaveBeenCalledWith('pty-survivor'));
expect(lastTerm?.write).toHaveBeenCalledWith('REPLAYED-SCREEN-BYTES', expect.any(Function));
expect(terminal.create).not.toHaveBeenCalled();
- expect(screen.queryByTestId('terminal-starting-notice')).toBeNull();
+ await waitFor(() => expect(screen.queryByTestId('terminal-starting-notice')).toBeNull());
});
test('reload rehydration: does not send replay-generated terminal replies into the live shell', async () => {