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.

Keep composed guidance controls aligned with their shipped destinations

pulse-triage[bot]ccd4f1b491d1
diff --git a/frontend-modern/src/components/Workloads/__tests__/NodeDrawerOverview.updateEvidence.test.tsx b/frontend-modern/src/components/Workloads/__tests__/NodeDrawerOverview.updateEvidence.test.tsx
index 43b9f06f29..942a4c8b66 100644
--- a/frontend-modern/src/components/Workloads/__tests__/NodeDrawerOverview.updateEvidence.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/NodeDrawerOverview.updateEvidence.test.tsx
@@ -85,7 +85,12 @@ describe('NodeDrawerOverview update evidence', () => {
const status = screen.getByText('Unavailable · Update check access denied');
expect(screen.getByTestId('node-technical-details')).not.toHaveAttribute('open');
- expect(status.closest('details')).toBeNull();
+ const details = screen.getByTestId('node-technical-details') as HTMLDetailsElement;
+ expect(status.closest('details')).toBe(details);
+ expect(status).not.toBeVisible();
+ details.open = true;
+ expect(status).toBeVisible();
+ details.open = false;
expect(status).toHaveClass('whitespace-normal');
expect(status).not.toHaveClass('truncate');
expect(screen.getByText(/Other monitoring can still work/)).toBeInTheDocument();
@@ -128,7 +133,13 @@ describe('NodeDrawerOverview update evidence', () => {
expect(screen.getByText(/7 pending.*stale.*checked 2 mins ago/)).toBeInTheDocument();
setNode({ ...node(), pendingUpdatesStatus: 'unavailable' });
expect(screen.getByRole('dialog', { name: 'Proxmox update-check access' })).toBe(help);
- expect(screen.getByText('Unavailable · Update check access denied')).toBeVisible();
+ expect(screen.getByTestId('node-technical-details')).toBe(details);
+ expect(screen.queryByTestId('node-drawer-exceptions')).toBeNull();
+ const status = screen.getByText('Unavailable · Update check access denied');
+ expect(status).not.toBeVisible();
+ details.open = true;
+ expect(status).toBeVisible();
+ expect(screen.getByRole('dialog', { name: 'Proxmox update-check access' })).toBe(help);
});
it('keeps a denied update check in Details, not under Worth checking', () => {
diff --git a/frontend-modern/src/features/docs/__tests__/troubleshootingEntryGuide.test.ts b/frontend-modern/src/features/docs/__tests__/troubleshootingEntryGuide.test.ts
index 5f203970eb..36b982df88 100644
--- a/frontend-modern/src/features/docs/__tests__/troubleshootingEntryGuide.test.ts
+++ b/frontend-modern/src/features/docs/__tests__/troubleshootingEntryGuide.test.ts
@@ -11,7 +11,7 @@ const renderedGuides = new Map<string, HTMLElement>();
function renderGuide(name: string): HTMLElement {
// Several destinations share a long guide. Render each immutable document
- // once, rather than making sixteen navigation checks parse it repeatedly.
+ // once, rather than making seventeen navigation checks parse it repeatedly.
// entry() clones its section, so the cached article is never modified.
const cached = renderedGuides.get(name);
if (cached) return cached;
@@ -44,7 +44,7 @@ describe('troubleshooting workflow entry', () => {
const section = entry();
const link = section.querySelector('a');
expect(link?.getAttribute('href')).toBe('/docs/VM_DISK_MONITORING#backup-safety');
- expect(section.querySelectorAll('li')).toHaveLength(9);
+ expect(section.querySelectorAll('li')).toHaveLength(10);
expect(section.querySelector('pre')).toBeNull();
const beforeList = [...section.children]
.slice(
@@ -75,17 +75,22 @@ describe('troubleshooting workflow entry', () => {
'Preserve the current state and rollback evidence',
);
expect(prose(rows[2] as HTMLElement)).toContain('Installer success is not an accepted report');
- expect(prose(rows[3] as HTMLElement)).toContain(
+ expect(prose(rows[3] as HTMLElement)).toContain('A stopped new command does not diagnose the existing agent');
+ expect(prose(rows[3] as HTMLElement)).toContain('do not repeat removal or installation');
+ expect(rows[3].querySelector('a')?.getAttribute('href')).toBe(
+ '/docs/UNIFIED_AGENT#copied-agent-command-fails-before-installation',
+ );
+ expect(prose(rows[4] as HTMLElement)).toContain(
'a working Pulse Agent view does not prove API recovery',
);
- expect(prose(rows[6] as HTMLElement)).toContain(
+ expect(prose(rows[7] as HTMLElement)).toContain(
'Guest usage and database size are different measurements',
);
});
it('routes every entry to an existing shipped heading in the production viewer', () => {
const links = [...entry().querySelectorAll('a[href]')];
- expect(links).toHaveLength(16);
+ expect(links).toHaveLength(17);
for (const link of links) {
const href = link.getAttribute('href')!;
const match = /^\/docs\/([^#]+)#(.+)$/.exec(href);