Fix ConfigInitDisplay flake

This commit is contained in:
jacob314
2026-03-07 15:19:29 -08:00
parent 7c8d5f9908
commit 25c1b9ab8f

View File

@@ -84,8 +84,9 @@ describe('ConfigInitDisplay', () => {
// Wait for the UI to update
await waitFor(() => {
expect(lastFrame()).toMatchSnapshot();
expect(lastFrame()).toContain('server2');
});
expect(lastFrame()).toMatchSnapshot();
});
it('truncates list of waiting servers if too many', async () => {
@@ -120,8 +121,9 @@ describe('ConfigInitDisplay', () => {
});
await waitFor(() => {
expect(lastFrame()).toMatchSnapshot();
expect(lastFrame()).toContain('s1');
});
expect(lastFrame()).toMatchSnapshot();
});
it('handles empty clients map', async () => {
@@ -147,7 +149,8 @@ describe('ConfigInitDisplay', () => {
}
await waitFor(() => {
expect(lastFrame()).toMatchSnapshot();
expect(lastFrame()).toContain('Initializing...');
});
expect(lastFrame()).toMatchSnapshot();
});
});