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.

Allow full-width guest freshness explanations in drawer ownership guard

pulse-triage[bot]6725576c7e9c
diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
index 2bd43bdb70..a621d42700 100644
--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx
@@ -1661,7 +1661,11 @@ describe('Workloads performance contract', () => {
);
expect(filesystemSectionSource).toContain("layout: 'stacked'");
expect(filesystemSectionSource).toContain('wrap: true');
- expect(guestDrawerOverviewSource.match(/layout: 'stacked'/g)).toHaveLength(1);
+ // Both filesystem paths and their longer freshness explanation need
+ // the card's full width. Do not couple that layout to a global count.
+ expect(guestDrawerOverviewSource).toContain(
+ "makeDetailRow('Status', diskStatusMessage, { layout: 'stacked', wrap: true })",
+ );
expect(guestDrawerOverviewSource).toContain('TechnicalDetailsSection');
expect(nodeDrawerOverviewSource).toContain('TechnicalDetailsSection');