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.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
test(admin): fail the addon load with a server error, not a dropped connection
Maurice6477bf5e39c7
diff --git a/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx b/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsxindex dc75a6fd4..cab6a32df 100644--- a/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx+++ b/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx@@ -102,7 +102,10 @@ describe('MAdminAddonManager', () => {});it('FE-MOB-AADD-004: a failing load toasts the addon error', async () => {- server.use(http.get('/api/admin/addons', () => HttpResponse.error()));+ // A server error, not a dropped connection: a network error starts the client's+ // connectivity probe, and whether the app then counts itself offline (and stays+ // quiet, as it should offline) raced the toast on a loaded runner.+ server.use(http.get('/api/admin/addons', () => HttpResponse.json({ error: 'boom' }, { status: 500 })));render(<><ToastContainer /><MAdminAddonManager /></>);await screen.findByText('Failed to update addon');