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 intra-document fragments in the OIDC guide check

pulse-triage[bot]254d6d0bb992
diff --git a/frontend-modern/src/features/docs/__tests__/oidcSetupDocs.test.ts b/frontend-modern/src/features/docs/__tests__/oidcSetupDocs.test.ts
index 223a5ad1ad..235c9372ab 100644
--- a/frontend-modern/src/features/docs/__tests__/oidcSetupDocs.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/oidcSetupDocs.test.ts
@@ -50,7 +50,8 @@ describe('OIDC setup without losing access', () => {
['OIDC', '-quick-start'],
['REVERSE_PROXY', 'before-configuring-the-proxy'],
]) {
- expect(guide.querySelector(`a[href="/docs/${name}#${fragment}"]`)).not.toBeNull();
+ const href = name === 'OIDC' ? `#${fragment}` : `/docs/${name}#${fragment}`;
+ expect(guide.querySelector(`a[href="${href}"]`)).not.toBeNull();
expect(article(name).querySelector(`[id="${fragment}"]`)).not.toBeNull();
}
});