mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 10:33:40 +01:00
Update missing-data FAQ Help test for Proxmox Backups links
Pulse PR #5370 added three shipped-guide links inside #no-data-showing in docs/FAQ.md (and frontend-modern/public/docs/FAQ.md): two pointing to /docs/RECOVERY#stale-proxmox-backup-telemetry and one pointing to /docs/PBS#stale-pbs-readings-and-unread-datastore-capacity. Update missingDataFAQ.test.ts to expect 15 links across #no-data-showing and #connection-refused and assert that the new RECOVERY and PBS links resolve to real headings in the shipped guides. Contract-Neutral: Updates a Vitest documentation assertion for added FAQ links without changing UI, runtime, or API behavior. Change-source: pulse-maintainer
This commit is contained in:
@@ -69,10 +69,18 @@ describe('shipped missing-data FAQ', () => {
|
||||
it('routes each symptom to a real heading in a shipped guide', () => {
|
||||
const sections = [section('no-data-showing'), section('connection-refused')];
|
||||
const links = sections.flatMap((element) => [...element.querySelectorAll('a[href]')]);
|
||||
expect(links).toHaveLength(12);
|
||||
expect(links).toHaveLength(15);
|
||||
expect(
|
||||
sections[0].querySelector('a[href="/docs/KUBERNETES#stale-kubernetes-readings"]'),
|
||||
).not.toBeNull();
|
||||
expect(
|
||||
sections[0].querySelectorAll('a[href="/docs/RECOVERY#stale-proxmox-backup-telemetry"]'),
|
||||
).toHaveLength(2);
|
||||
expect(
|
||||
sections[0].querySelector(
|
||||
'a[href="/docs/PBS#stale-pbs-readings-and-unread-datastore-capacity"]',
|
||||
),
|
||||
).not.toBeNull();
|
||||
expect(
|
||||
sections[0].querySelector(
|
||||
'a[href="/docs/TROUBLESHOOTING#replication-jobs-are-pending-stale-or-missing"]',
|
||||
|
||||
Reference in New Issue
Block a user