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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: resend the preview player's loaded message until its listener is attached, ending a CI-only manifest race
[._.]/ Adam Eivy9476cc97a6c4
diff --git a/client/src/components/musicVideo/CompositionPreviewPlayer.test.jsx b/client/src/components/musicVideo/CompositionPreviewPlayer.test.jsxindex 577d3604b7..bc8c9e26cb 100644--- a/client/src/components/musicVideo/CompositionPreviewPlayer.test.jsx+++ b/client/src/components/musicVideo/CompositionPreviewPlayer.test.jsx@@ -30,7 +30,12 @@ describe('CompositionPreviewPlayer', () => {const send = (data) => act(async () => {window.dispatchEvent(new MessageEvent('message', { source: frame.contentWindow, data }));});- await send({ type: 'portos-mv:loaded' });+ // findByTitle can resolve before React flushes the passive effect that attaches the message listener, so a+ // `loaded` sent that early is dropped; repeat it until the player answers with its manifest.+ await waitFor(async () => {+ await send({ type: 'portos-mv:loaded' });+ expect(post).toHaveBeenCalledWith(expect.objectContaining({ type: 'portos-mv:manifest' }), '*');+ });const ask = async (key) => {await send({ type: 'portos-mv:request', key });await waitFor(() => expect(post).toHaveBeenCalledWith(expect.objectContaining({ type: 'portos-mv:asset', key }), '*'));