mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-19 16:23:06 -07:00
test(cli): wrap intermediate buffer states for MultiFolderTrustDialog in waitFor layout updates
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
import { render } from '../../test-utils/render.js';
|
||||
import { act } from 'react';
|
||||
import { waitFor } from '../../test-utils/async.js';
|
||||
import {
|
||||
MultiFolderTrustDialog,
|
||||
MultiFolderTrustChoice,
|
||||
@@ -218,7 +219,9 @@ describe('MultiFolderTrustDialog', () => {
|
||||
});
|
||||
await waitUntilReady();
|
||||
|
||||
expect(lastFrame()).toContain('Applying trust settings...');
|
||||
await waitFor(() => {
|
||||
expect(lastFrame()).toContain('Applying trust settings...');
|
||||
});
|
||||
unmount();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user