Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
test(web): guard bootstrap timer cleanup across attempts
pulse-triage[bot]d44c6282defa
diff --git a/frontend-modern/src/components/__tests__/AppBootstrapStatus.test.tsx b/frontend-modern/src/components/__tests__/AppBootstrapStatus.test.tsxindex 128ad1b919..8e536f2af9 100644--- a/frontend-modern/src/components/__tests__/AppBootstrapStatus.test.tsx+++ b/frontend-modern/src/components/__tests__/AppBootstrapStatus.test.tsx@@ -34,4 +34,24 @@ describe('AppBootstrapStatus', () => {fireEvent.click(retry);expect(onRetry).toHaveBeenCalledOnce();});++ it('cancels a completed bootstrap timer and gives a fresh attempt its full waiting period', async () => {+ vi.useFakeTimers();+ const first = render(() => <AppBootstrapStatus />);+ await vi.advanceTimersByTimeAsync(APP_BOOTSTRAP_SLOW_DELAY_MS - 1);+ expect(screen.queryByRole('button', { name: 'Retry connection' })).toBeNull();++ first.unmount();+ expect(vi.getTimerCount()).toBe(0);++ render(() => <AppBootstrapStatus />);+ await vi.advanceTimersByTimeAsync(1);+ expect(screen.getByRole('status')).toHaveTextContent(+ 'Checking your session and preparing the workspace.',+ );+ expect(screen.queryByRole('button', { name: 'Retry connection' })).toBeNull();++ await vi.advanceTimersByTimeAsync(APP_BOOTSTRAP_SLOW_DELAY_MS - 1);+ expect(screen.getByRole('button', { name: 'Retry connection' })).toBeVisible();+ });});