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.

Match Windows guide tests to native fragment links

pulse-triage[bot]8423ed2e2e33
diff --git a/frontend-modern/src/features/docs/__tests__/proxmoxPermissionsGuide.test.ts b/frontend-modern/src/features/docs/__tests__/proxmoxPermissionsGuide.test.ts
index 71bdcbe954..56b2e6fd07 100644
--- a/frontend-modern/src/features/docs/__tests__/proxmoxPermissionsGuide.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/proxmoxPermissionsGuide.test.ts
@@ -133,10 +133,9 @@ describe('shipped Proxmox permission diagnosis', () => {
expect(prose(article)).toContain(
'not evidence that Windows filesystem collection needs VM.GuestAgent.FileRead',
);
+ // Same-document fragments stay native links; only .md links become viewer routes.
expect(
- article.querySelector(
- 'a[href="/docs/VM_DISK_MONITORING#windows-readings-after-a-pulse-restart"]',
- ),
+ article.querySelector('a[href="#windows-readings-after-a-pulse-restart"]'),
).not.toBeNull();
expect(article.querySelector('#windows-readings-after-a-pulse-restart')).not.toBeNull();
});
@@ -173,9 +172,7 @@ describe('shipped Proxmox permission diagnosis', () => {
'use-existing-machines-readings-without-changing-the-guest',
'backup-safety',
]) {
- expect(
- content.querySelector(`a[href="/docs/VM_DISK_MONITORING#${fragment}"]`),
- ).not.toBeNull();
+ expect(content.querySelector(`a[href="#${fragment}"]`)).not.toBeNull();
expect(renderGuide('VM_DISK_MONITORING').querySelector(`#${fragment}`)).not.toBeNull();
}
});