Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(llm-parse): an unreachable ollama shows the server's reason in the addon settings, not the status line

Mauricea9a0478c63f3
diff --git a/client/src/components/Admin/AddonManager.test.tsx b/client/src/components/Admin/AddonManager.test.tsx
index 739bb1b71..248e4fda7 100644
--- a/client/src/components/Admin/AddonManager.test.tsx
+++ b/client/src/components/Admin/AddonManager.test.tsx
@@ -614,7 +614,9 @@ describe('AddonManager', () => {
);
render(<AddonManager />);
- await screen.findByText(/Request failed with status code 500/);
+ // The server's reason is shown, not axios' status line (#2649)
+ await screen.findByText('down');
+ expect(screen.queryByText(/Request failed with status code/)).not.toBeInTheDocument();
await user.click(screen.getByRole('button', { name: 'Refresh' }));
await screen.findByText('No models installed yet — pull one below.');
diff --git a/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx b/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx
index 3b77e2c6c..d586b9ff4 100644
--- a/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx
+++ b/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx
@@ -533,7 +533,9 @@ describe('MAdminAddonManager', () => {
);
render(<MAdminAddonManager />);
- await screen.findByText(/Request failed with status code 500/);
+ // The server's reason is shown, not axios' status line (#2649)
+ await screen.findByText('down');
+ expect(screen.queryByText(/Request failed with status code/)).not.toBeInTheDocument();
await user.click(screen.getByRole('button', { name: 'Refresh' }));
await screen.findByText('No models installed yet — pull one below.');