diff --git a/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx b/client/tests/unit/mobile/admin/MAdminAddonManager.test.tsx index 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(<>); await screen.findByText('Failed to update addon');