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 stage-only redirect to settle before asserting the location (#10303)

[._.]/ Adam Eivyc1a78542d024
diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsx
index 9965c73d99..46a5062b5f 100644
--- a/client/src/pages/MusicVideo.test.jsx
+++ b/client/src/pages/MusicVideo.test.jsx
@@ -509,7 +509,7 @@ describe('MusicVideo stage-only nav URLs (#10303)', () => {
</MemoryRouter>,
);
expect(await screen.findByText(/No music video projects yet/)).toBeInTheDocument();
- expect(screen.getByTestId('loc')).toHaveTextContent(/^\/music-video$/);
+ await waitFor(() => expect(screen.getByTestId('loc')).toHaveTextContent(/^\/music-video$/));
expect(screen.queryByText(/Project not found/)).not.toBeInTheDocument();
});
});