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.

Wait for saved day URL in backup polling regression

pulse-triage[bot]5c7392a4cad6
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
index 2e70217987..0a9c3991af 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
@@ -2546,11 +2546,13 @@ describe('backup activity day controls survive ordinary inventory polling', () =
fireEvent.click(target);
await waitFor(() => expect(target).toHaveAttribute('aria-pressed', 'true'));
expect(document.querySelectorAll('[data-proxmox-backup-row="recoverable"]')).toHaveLength(2);
- expect(new URLSearchParams(window.location.search).get('day')).toBe('2026-10-04');
+ await waitFor(() =>
+ expect(new URLSearchParams(window.location.search).get('day')).toBe('2026-10-04'),
+ );
fireEvent.click(target);
await waitFor(() => expect(target).toHaveAttribute('aria-pressed', 'false'));
expect(target).toHaveFocus();
- expect(new URLSearchParams(window.location.search).has('day')).toBe(false);
+ await waitFor(() => expect(new URLSearchParams(window.location.search).has('day')).toBe(false));
expect(apiFetchMock).toHaveBeenCalledTimes(4);
});
});