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: await busy state settling in LayaMlxPanel test (#8163)

[._.]/ Adam Eivy365f7bedb99f
diff --git a/client/src/components/models/LayaMlxPanel.test.jsx b/client/src/components/models/LayaMlxPanel.test.jsx
index 795e4c14ca..ba879c5e4c 100644
--- a/client/src/components/models/LayaMlxPanel.test.jsx
+++ b/client/src/components/models/LayaMlxPanel.test.jsx
@@ -17,6 +17,7 @@ it('scores only on explicit action and clears stale results when input changes',
fireEvent.change(screen.getByLabelText(/Options/), { target: { value: 'billing\nsales' } });
fireEvent.click(screen.getByRole('button', { name: 'Run experiment' }));
expect(await screen.findByText('Choice: billing')).toBeInTheDocument();
+ await waitFor(() => expect(screen.getByRole('button', { name: 'Run experiment' })).toBeEnabled());
expect(mocks.score).toHaveBeenCalledWith(expect.objectContaining({ premise: 'Duplicate invoice', options: ['billing', 'sales'] }), { silent: true });
fireEvent.change(screen.getByLabelText('Premise'), { target: { value: 'Another input' } });
expect(screen.queryByText('Choice: billing')).not.toBeInTheDocument();