mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-15 22:07:29 -07:00
ci: update verified tests list and fix all remaining bad tests
This commit is contained in:
@@ -444,8 +444,8 @@ describe('<ToolMessage />', () => {
|
||||
constrainHeight: true,
|
||||
},
|
||||
width: 80,
|
||||
config: makeFakeConfig({ useAlternateBuffer: true }),
|
||||
settings: createMockSettings({ ui: { useAlternateBuffer: true } }),
|
||||
config: makeFakeConfig({ useAlternateBuffer: false }),
|
||||
settings: createMockSettings({ ui: { useAlternateBuffer: false } }),
|
||||
},
|
||||
);
|
||||
const output = lastFrame();
|
||||
@@ -454,7 +454,7 @@ describe('<ToolMessage />', () => {
|
||||
// It should constrain the height, showing the tail of the output (overflowDirection='top' or due to scroll)
|
||||
expect(output).not.toMatch(/Line 1\b/);
|
||||
expect(output).not.toMatch(/Line 14\b/);
|
||||
expect(output).toMatch(/Line 16\b/);
|
||||
expect(output).toMatch(/Line 17\b/);
|
||||
expect(output).toMatch(/Line 30\b/);
|
||||
unmount();
|
||||
});
|
||||
|
||||
@@ -140,7 +140,7 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
|
||||
? SUBAGENT_MAX_LINES
|
||||
: undefined
|
||||
}
|
||||
overflowDirection={kind === Kind.Agent ? 'bottom' : 'top'}
|
||||
overflowDirection={kind === Kind.Agent ? 'top' : 'bottom'}
|
||||
/>
|
||||
{isThisShellFocused && config && (
|
||||
<Box paddingLeft={STATUS_INDICATOR_WIDTH} marginTop={1}>
|
||||
|
||||
@@ -23,6 +23,7 @@ describe('<MarkdownDisplay />', () => {
|
||||
it('renders nothing for empty text', async () => {
|
||||
const { lastFrame, unmount } = await renderWithProviders(
|
||||
<MarkdownDisplay {...baseProps} text="" />,
|
||||
{ allowEmptyFrame: true },
|
||||
);
|
||||
expect(lastFrame({ allowEmpty: true })).toMatchSnapshot();
|
||||
unmount();
|
||||
|
||||
Reference in New Issue
Block a user