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 recipe navigation in creation regression test

[._.]/ Adam Eivy690e4dbe6bdc
diff --git a/client/src/components/cos/PersistentMindRecipeLibrary.test.jsx b/client/src/components/cos/PersistentMindRecipeLibrary.test.jsx
index 2ae9b05fdf..5f677345af 100644
--- a/client/src/components/cos/PersistentMindRecipeLibrary.test.jsx
+++ b/client/src/components/cos/PersistentMindRecipeLibrary.test.jsx
@@ -41,7 +41,7 @@ describe('PersistentMindRecipeLibrary', () => {
expect(screen.getByText(/Output bindings are checked at invocation/)).toBeInTheDocument();
await user.click(screen.getByRole('button', { name: 'Save recipe' }));
expect(await screen.findByRole('button', { name: definition.name })).toBeInTheDocument();
- expect(screen.getByTestId('location')).toHaveTextContent('?panel=tools&recipe=first');
+ await waitFor(() => expect(screen.getByTestId('location')).toHaveTextContent('?panel=tools&recipe=first'));
expect(api.getMindRecipes).toHaveBeenCalledTimes(2);
expect(api.createMindRecipe).toHaveBeenCalledWith(expect.objectContaining({ schemaVersion: 1, name: definition.name }), { silent: true });
});