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.

Check the rendered backup-help table within its scroll container

pulse-triage[bot]63e704bf1850
diff --git a/frontend-modern/src/features/docs/__tests__/backupFreshnessDocs.test.ts b/frontend-modern/src/features/docs/__tests__/backupFreshnessDocs.test.ts
index a5ea5fbdf8..bb62360591 100644
--- a/frontend-modern/src/features/docs/__tests__/backupFreshnessDocs.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/backupFreshnessDocs.test.ts
@@ -21,7 +21,10 @@ describe('backup-cycle help matches the existing controls', () => {
expect(heading).not.toBeNull();
expect(text(guide)).toContain(`Alerts → Thresholds → Proxmox, then expand ${ALERT_THRESHOLDS_SECTION_TITLE_BACKUPS}`);
expect(text(guide)).toContain('Global Defaults');
- const table = heading!.nextElementSibling!.nextElementSibling!.nextElementSibling!;
+ const scroll = heading!.nextElementSibling!.nextElementSibling!.nextElementSibling!;
+ expect(scroll.hasAttribute('data-doc-table-scroll')).toBe(true);
+ const table = scroll.querySelector('table')!;
+ expect(table).not.toBeNull();
expect(table.tagName).toBe('TABLE');
expect([...table.querySelectorAll('tbody tr td:first-child')].map(text)).toEqual([
'Fresh Hours', 'Stale Hours', 'Warning Days / Critical Days',