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.

Type the documentation security probe as an anchor

pulse-triage[bot]bdab0ad25104
diff --git a/frontend-modern/src/features/docs/__tests__/docMarkdownSecurity.test.ts b/frontend-modern/src/features/docs/__tests__/docMarkdownSecurity.test.ts
index 4649537589..4cd63ed959 100644
--- a/frontend-modern/src/features/docs/__tests__/docMarkdownSecurity.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/docMarkdownSecurity.test.ts
@@ -148,7 +148,7 @@ describe('documentation rewritten-link security boundary', () => {
),
);
expect(article.querySelector('script, svg, iframe, [onclick], [onerror]')).toBeNull();
- const link = article.querySelector('a[data-doc-link]')!;
+ const link = article.querySelector<HTMLAnchorElement>('a[data-doc-link]')!;
expect(link.textContent).toBe('Install');
expect(link.getAttribute('href')).toBe('/docs/INSTALL#"><img src=x onerror=probe()>');
expect(link.origin).toBe(new URL(bases[1]).origin);