Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: wait for the Codex model list before editing the render limit (#12183) (#12190)

[._.]/a1787600c004
diff --git a/client/src/components/settings/ImageGenTab.test.jsx b/client/src/components/settings/ImageGenTab.test.jsx
index 47664908a4..759b58212d 100644
--- a/client/src/components/settings/ImageGenTab.test.jsx
+++ b/client/src/components/settings/ImageGenTab.test.jsx
@@ -106,6 +106,9 @@ describe('ImageGenTab grouped tabs', () => {
},
});
await renderTab(['/media/image?mediaTab=codex']);
+ // The Codex section's model list loads late (getProviders). Wait for it to
+ // land so its state update happens inside the waitFor, not after the edit.
+ await waitFor(() => expect(screen.getByRole('option', { name: 'gpt-5.6-luna' })).toBeTruthy());
const input = screen.getByLabelText('Parallel render limit');
expect(input.value).toBe('25');
fireEvent.change(input, { target: { value: '50' } });