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.

Prepare complete diagnostics guides before safety assertions

pulse-triage[bot]d4ea2068969a
diff --git a/frontend-modern/src/features/docs/__tests__/diagnosticsCollectionGuide.test.ts b/frontend-modern/src/features/docs/__tests__/diagnosticsCollectionGuide.test.ts
index 5f04cf2e38..36a07f2815 100644
--- a/frontend-modern/src/features/docs/__tests__/diagnosticsCollectionGuide.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/diagnosticsCollectionGuide.test.ts
@@ -1,6 +1,6 @@
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
-import { describe, expect, it } from 'vitest';
+import { beforeAll, describe, expect, it } from 'vitest';
import { getSettingsNavItem } from '@/components/Settings/settingsNavCatalog';
import { settingsTabPath } from '@/components/Settings/settingsNavigationModel';
import { DIAGNOSTICS_PANEL_COPY } from '@/utils/diagnosticsPresentation';
@@ -11,6 +11,15 @@ const read = (name: string) =>
const article = createGuideFixture(read);
const text = (element: Element) => element.textContent!.replace(/\s+/g, ' ').trim();
+// Prepare each complete shipped guide in its own bounded setup hook. Cold
+// Markdown/sanitizer work is fixture construction, not a navigation assertion;
+// keep the normal test deadlines and isolated, source-checked DOM clones.
+for (const name of ['TROUBLESHOOTING', 'CONFIGURATION']) {
+ beforeAll(() => {
+ article(name);
+ });
+}
+
function collectionSection() {
const guide = article('TROUBLESHOOTING');
const heading = guide.querySelector('#collect-diagnostics-safely');