mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-03 00:14:28 -07:00
Migrate core render util to use xterm.js as part of the rendering loop. (#19044)
This commit is contained in:
@@ -34,21 +34,27 @@ describe('ShortcutsHelp', () => {
|
||||
),
|
||||
)(
|
||||
'renders correctly in $name mode on $platform.name',
|
||||
({ width, platform }) => {
|
||||
async ({ width, platform }) => {
|
||||
Object.defineProperty(process, 'platform', {
|
||||
value: platform.value,
|
||||
});
|
||||
|
||||
const { lastFrame } = renderWithProviders(<ShortcutsHelp />, {
|
||||
width,
|
||||
});
|
||||
const { lastFrame, waitUntilReady, unmount } = renderWithProviders(
|
||||
<ShortcutsHelp />,
|
||||
{
|
||||
width,
|
||||
},
|
||||
);
|
||||
await waitUntilReady();
|
||||
expect(lastFrame()).toContain('shell mode');
|
||||
expect(lastFrame()).toMatchSnapshot();
|
||||
unmount();
|
||||
},
|
||||
);
|
||||
|
||||
it('always shows Tab Tab focus UI shortcut', () => {
|
||||
it('always shows Tab Tab focus UI shortcut', async () => {
|
||||
const rendered = renderWithProviders(<ShortcutsHelp />);
|
||||
await rendered.waitUntilReady();
|
||||
expect(rendered.lastFrame()).toContain('Tab Tab');
|
||||
rendered.unmount();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user