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

fix: wait for the video model catalog before selecting a retargeted model (#7600)

[._.]/ Adam Eivy9fc77d07565e
diff --git a/client/src/components/media/MediaJobsQueue.test.jsx b/client/src/components/media/MediaJobsQueue.test.jsx
index 95be009cfc..36124b29d4 100644
--- a/client/src/components/media/MediaJobsQueue.test.jsx
+++ b/client/src/components/media/MediaJobsQueue.test.jsx
@@ -599,6 +599,9 @@ describe('MediaJobsQueue — video retry reference mode (#4874)', () => {
await openRetryEditor(user);
await waitFor(() => expect(screen.getByLabelText('Reference mode').value).toBe('inspire'));
+ // Wait for the model catalog itself, not just the (job-derived) reference
+ // mode, before selecting an option the catalog fetch hasn't rendered yet.
+ await screen.findByRole('option', { name: 'LTX-2.3' });
await user.selectOptions(screen.getByLabelText('Model'), 'ltx2-model');
await waitFor(() => expect(screen.getByLabelText('Reference mode').value).toBe('anchor'));
// And the retry submits the clear rather than a value the server would 400.