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.

Check each intended help link when a section has several entry points

pulse-triage[bot]9a4ef32aab93
diff --git a/frontend-modern/src/utils/__tests__/webhookRetryHelp.test.ts b/frontend-modern/src/utils/__tests__/webhookRetryHelp.test.ts
index 35cdeb111d..f0a83f9e1e 100644
--- a/frontend-modern/src/utils/__tests__/webhookRetryHelp.test.ts
+++ b/frontend-modern/src/utils/__tests__/webhookRetryHelp.test.ts
@@ -125,7 +125,9 @@ describe('webhook retry help', () => {
['TROUBLESHOOTING', 'WEBHOOKS', '-delivery-contract', 'webhook retry behaviour'],
];
for (const [from, to, fragment, label] of cases) {
- const link = article(from).querySelector(`a[href="/docs/${to}#${fragment}"]`);
+ const link = [...article(from).querySelectorAll(`a[href="/docs/${to}#${fragment}"]`)].find(
+ (candidate) => candidate.textContent === label,
+ );
expect(link?.textContent).toBe(label);
expect(link?.hasAttribute('data-doc-link')).toBe(true);
expect(article(to).querySelector(`[id="${fragment}"]`)).not.toBeNull();