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.

Verify both troubleshooting backup-safety entry points

pulse-triage[bot]4b488a9333e9
diff --git a/frontend-modern/src/utils/__tests__/backupSafetyHelp.test.ts b/frontend-modern/src/utils/__tests__/backupSafetyHelp.test.ts
index aca374da94..3829983636 100644
--- a/frontend-modern/src/utils/__tests__/backupSafetyHelp.test.ts
+++ b/frontend-modern/src/utils/__tests__/backupSafetyHelp.test.ts
@@ -136,10 +136,15 @@ describe('manual backup safety help', () => {
expect(read('frontend-modern/public/docs/VM_DISK_MONITORING.md')).toBe(guide);
const troubleshooting = read('docs/TROUBLESHOOTING.md');
expect(read('frontend-modern/public/docs/TROUBLESHOOTING.md')).toBe(troubleshooting);
- const link = render(troubleshooting, 'TROUBLESHOOTING').querySelector(
+ // The symptom-first navigation also links to this precaution. Check both
+ // entry points instead of assuming the detailed warning is the first link.
+ const links = render(troubleshooting, 'TROUBLESHOOTING').querySelectorAll(
'a[href="/docs/VM_DISK_MONITORING#backup-safety"]',
);
- expect(link?.textContent).toBe('manual backup precaution');
+ expect([...links].map((link) => link.textContent)).toEqual([
+ 'Backup safety',
+ 'manual backup precaution',
+ ]);
const target = render(guide, 'VM_DISK_MONITORING');
expect(target.querySelector('#backup-safety')?.textContent).toBe('Backup safety');
for (const fragment of [