fix(ui): remove extraneous whitespace from startup screen (#3990)

This commit is contained in:
Jacob Richman
2025-07-25 17:36:19 -07:00
committed by GitHub
parent 21fef1620d
commit b089845f1c
6 changed files with 53 additions and 4 deletions

View File

@@ -657,6 +657,38 @@ describe('App UI', () => {
});
});
it('should render the initial UI correctly', () => {
const { lastFrame, unmount } = render(
<App
config={mockConfig as unknown as ServerConfig}
settings={mockSettings}
version={mockVersion}
/>,
);
currentUnmount = unmount;
expect(lastFrame()).toMatchSnapshot();
});
it('should render correctly with the prompt input box', () => {
vi.mocked(useGeminiStream).mockReturnValue({
streamingState: StreamingState.Idle,
submitQuery: vi.fn(),
initError: null,
pendingHistoryItems: [],
thought: null,
});
const { lastFrame, unmount } = render(
<App
config={mockConfig as unknown as ServerConfig}
settings={mockSettings}
version={mockVersion}
/>,
);
currentUnmount = unmount;
expect(lastFrame()).toMatchSnapshot();
});
describe('with initial prompt from --prompt-interactive', () => {
it('should submit the initial prompt automatically', async () => {
const mockSubmitQuery = vi.fn();