mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
Fix ConfigInitDisplay flake
This commit is contained in:
@@ -84,8 +84,9 @@ describe('ConfigInitDisplay', () => {
|
|||||||
|
|
||||||
// Wait for the UI to update
|
// Wait for the UI to update
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(lastFrame()).toMatchSnapshot();
|
expect(lastFrame()).toContain('server2');
|
||||||
});
|
});
|
||||||
|
expect(lastFrame()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('truncates list of waiting servers if too many', async () => {
|
it('truncates list of waiting servers if too many', async () => {
|
||||||
@@ -120,8 +121,9 @@ describe('ConfigInitDisplay', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(lastFrame()).toMatchSnapshot();
|
expect(lastFrame()).toContain('s1');
|
||||||
});
|
});
|
||||||
|
expect(lastFrame()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('handles empty clients map', async () => {
|
it('handles empty clients map', async () => {
|
||||||
@@ -147,7 +149,8 @@ describe('ConfigInitDisplay', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(lastFrame()).toMatchSnapshot();
|
expect(lastFrame()).toContain('Initializing...');
|
||||||
});
|
});
|
||||||
|
expect(lastFrame()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user