mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-18 18:11:02 -07:00
fix(cli): extensions dialog UX polish (#19685)
This commit is contained in:
@@ -131,8 +131,9 @@ describe('SearchableList', () => {
|
||||
|
||||
await waitFor(() => {
|
||||
const frame = lastFrame();
|
||||
expect(frame).toContain('> Item Two');
|
||||
expect(frame).toContain('● Item Two');
|
||||
});
|
||||
expect(lastFrame()).toMatchSnapshot();
|
||||
|
||||
await React.act(async () => {
|
||||
stdin.write('One');
|
||||
@@ -143,6 +144,7 @@ describe('SearchableList', () => {
|
||||
expect(frame).toContain('Item One');
|
||||
expect(frame).not.toContain('Item Two');
|
||||
});
|
||||
expect(lastFrame()).toMatchSnapshot();
|
||||
|
||||
await React.act(async () => {
|
||||
// Backspace "One" (3 chars)
|
||||
@@ -152,9 +154,10 @@ describe('SearchableList', () => {
|
||||
await waitFor(() => {
|
||||
const frame = lastFrame();
|
||||
expect(frame).toContain('Item Two');
|
||||
expect(frame).toContain('> Item One');
|
||||
expect(frame).not.toContain('> Item Two');
|
||||
expect(frame).toContain('● Item One');
|
||||
expect(frame).not.toContain('● Item Two');
|
||||
});
|
||||
expect(lastFrame()).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('should filter items based on search query', async () => {
|
||||
|
||||
Reference in New Issue
Block a user