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.

Observe source-search clearing before navigating its saved URL

pulse-triage[bot]3832a811bbeb
diff --git a/frontend-modern/src/features/proxmox/__tests__/backupSourceConnection.test.tsx b/frontend-modern/src/features/proxmox/__tests__/backupSourceConnection.test.tsx
index b328b2fdac..93e506f305 100644
--- a/frontend-modern/src/features/proxmox/__tests__/backupSourceConnection.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/backupSourceConnection.test.tsx
@@ -102,9 +102,10 @@ describe('restore-point source connections in real inventory consumers', () => {
expect(await screen.findByTestId('proxmox-coverage-detail')).toHaveTextContent('pbs-west');
expect(new URLSearchParams(window.location.search).get('q')).toBe('PBS-WEST');
expect(new URLSearchParams(window.location.search).has('location')).toBe(false);
- fireEvent.input(screen.getByPlaceholderText(/Search backups by workload/), {
+ await fireEvent.input(screen.getByPlaceholderText(/Search backups by workload/), {
target: { value: '' },
});
+ await waitFor(() => expect(new URLSearchParams(window.location.search).has('q')).toBe(false));
await fireEvent.click(screen.getByRole('link', { name: /by date/i }));
await waitFor(() =>
expect(document.querySelectorAll('[data-proxmox-backup-row="recoverable"]')).toHaveLength(2),