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.

Compare rendered PBS help prose independently of line wrapping

pulse-triage[bot]e0718b4c8693
diff --git a/frontend-modern/src/features/docs/__tests__/pbsMissingGuide.test.ts b/frontend-modern/src/features/docs/__tests__/pbsMissingGuide.test.ts
index 04fdd08270..584c360283 100644
--- a/frontend-modern/src/features/docs/__tests__/pbsMissingGuide.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/pbsMissingGuide.test.ts
@@ -58,7 +58,7 @@ describe('missing API-only PBS help', () => {
it('links the existing troubleshooting entry and safety/history guides to real headings', () => {
const entry = render('TROUBLESHOOTING').querySelector(`a[href="/docs/PBS#${fragment}"]`);
expect(entry).not.toBeNull();
- expect(entry?.closest('li')?.textContent).toContain('installing an agent does not prove API recovery');
+ expect(prose(entry!.closest('li')!)).toContain('installing an agent does not prove API recovery');
for (const link of section().querySelectorAll('a[href]')) {
const href = link.getAttribute('href')!;
const target = /^#(.+)$/.exec(href);