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
wait on the settled value in two client tests that asserted behind the wrong barrier
[._.]/ Adam Eivyae69d0ec2eff
diff --git a/client/src/pages/Media3DDetail.test.jsx b/client/src/pages/Media3DDetail.test.jsxindex d03d544cf1..9e7943ecf3 100644--- a/client/src/pages/Media3DDetail.test.jsx+++ b/client/src/pages/Media3DDetail.test.jsx@@ -75,7 +75,11 @@ describe('Media3DDetail', () => {expect(screen.getByAltText('Source image')).toBeInTheDocument();// The viewer's loaded scene has to reach the AR panel or its export button// stays permanently disabled — a prop chain no other assertion touches.- expect(await screen.findByTestId('ar-export-panel')).toHaveAttribute('data-has-scene', 'true');+ // The panel mounts before the scene reaches it, so wait on the ATTRIBUTE:+ // findByTestId resolves on the node and leaves the prop still in flight.+ await waitFor(() =>+ expect(screen.getByTestId('ar-export-panel')).toHaveAttribute('data-has-scene', 'true'),+ );});it('surfaces the render error for a failed record', async () => {diff --git a/client/src/pages/PromptManager.test.jsx b/client/src/pages/PromptManager.test.jsxindex 3309f62526..b95a23472d 100644--- a/client/src/pages/PromptManager.test.jsx+++ b/client/src/pages/PromptManager.test.jsx@@ -557,9 +557,13 @@ describe('PromptManager variable editing', () => {expect(createPromptVariable).toHaveBeenCalledWith(expect.objectContaining({ key: 'aside-voice', content: 'wink' }), { silent: true },);- await waitFor(() => expect(currentSearch()).toContain('var=aside-voice'));+ // The URL selection and the editor's hydration from the post-create+ // refetch are separate effects, so `var=aside-voice` landing in the URL+ // does not prove the editor has content yet. Wait on the value — the last+ // thing to settle — and the URL assertion comes along for free.+ await waitFor(() => expect(contentBox().value).toBe('wink'));+ expect(currentSearch()).toContain('var=aside-voice');expect(screen.getByText('Edit: aside-voice')).toBeTruthy();- expect(contentBox().value).toBe('wink');});it('confirms a delete with a toast', async () => {