Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Keep router scheduling live after the controlled backup poll

pulse-triage[bot]77d8f2bb4fa0
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
index 0a9c3991af..42074febeb 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
@@ -2543,6 +2543,10 @@ describe('backup activity day controls survive ordinary inventory polling', () =
expect(target).toHaveFocus();
expect(apiFetchMock).toHaveBeenCalledTimes(4);
expect(apiFetchJSONMock).toHaveBeenCalledTimes(2);
+ // Like the existing saved-view/navigation regressions, keep the router's
+ // scheduling live during input. The inventory poll above stays controlled.
+ vi.useRealTimers();
+ vi.useFakeTimers({ now: BACKUP_IDENTITY_NOW + 30_000, toFake: ['Date'] });
fireEvent.click(target);
await waitFor(() => expect(target).toHaveAttribute('aria-pressed', 'true'));
expect(document.querySelectorAll('[data-proxmox-backup-row="recoverable"]')).toHaveLength(2);