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: wait for rejected addPeer to settle before switching Instances drawer mode (#7978)
[._.]/ Adam Eivy39bae15e0132
diff --git a/client/src/pages/Instances.test.jsx b/client/src/pages/Instances.test.jsxindex d084e5e782..d9302f700c 100644--- a/client/src/pages/Instances.test.jsx+++ b/client/src/pages/Instances.test.jsx@@ -372,6 +372,10 @@ describe('Instances page connection drawers', () => {fireEvent.click(screen.getByRole('button', { name: 'Add', exact: true }));await waitFor(() => expect(api.addPeer).toHaveBeenCalled());expect(screen.getByLabelText('Peer address')).toHaveValue('192.0.2.30');+ // The rejected addPeer call keeps the mode buttons disabled (adding=true)+ // until its catch/finally settles — wait for that before switching modes,+ // or a slow microtask under load leaves this click a no-op (#7978).+ await waitFor(() => expect(screen.getByRole('button', { name: 'Tailcat', exact: true })).not.toBeDisabled());fireEvent.click(screen.getByRole('button', { name: 'Tailcat', exact: true }));fireEvent.change(screen.getByLabelText('Tailcat address'), { target: { value: 'tcEXAMPLE' } });fireEvent.click(screen.getByRole('button', { name: 'They dial us' }));