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.

Align composed reading fixtures with quiet captions and persistent facts

pulse-triage[bot]995a932830f9
diff --git a/frontend-modern/browser-tests/drawer-integration.tsx b/frontend-modern/browser-tests/drawer-integration.tsx
index 10633abed1..fccdf2ed20 100644
--- a/frontend-modern/browser-tests/drawer-integration.tsx
+++ b/frontend-modern/browser-tests/drawer-integration.tsx
@@ -160,7 +160,7 @@ function NodeFixture() {
temperature: {
available: true,
cpuPackage: 55,
- cores: { 'Hottest secondary': 91 },
+ cores: [{ core: 0, temp: 50 }],
hasGPU: true,
gpu: 95,
},
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestDrawer.system.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestDrawer.system.test.tsx
index 3703f83242..442669a4e7 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestDrawer.system.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestDrawer.system.test.tsx
@@ -74,14 +74,17 @@ describe('readable guest System evidence', () => {
const [value, setValue] = createSignal(guest());
render(() => <GuestDrawer guest={value()} onClose={() => {}} />);
const drawer = screen.getByTestId('guest-technical-details');
- expect(screen.queryByTestId('guest-drawer-facts')).not.toBeInTheDocument();
+ const facts = systemFacts();
+ expect(within(facts).getByText('2 vCPU')).toBeVisible();
setValue({ ...value(), osName: 'Debian GNU/Linux', osVersion: '13.7 (trixie)' });
expect(within(systemFacts()).getByText('Debian GNU/Linux • 13.7 (trixie)')).toBeVisible();
setValue({ ...value(), osName: 'Ubuntu', osVersion: '24.04.3 LTS' });
expect(within(systemFacts()).getByText('Ubuntu • 24.04.3 LTS')).toBeVisible();
expect(screen.queryByText('Debian GNU/Linux • 13.7 (trixie)')).not.toBeInTheDocument();
setValue({ ...value(), osName: '', osVersion: '' });
- expect(screen.queryByTestId('guest-drawer-facts')).not.toBeInTheDocument();
+ expect(screen.queryByText('Ubuntu • 24.04.3 LTS')).not.toBeInTheDocument();
+ expect(within(systemFacts()).getByText('2 vCPU')).toBeVisible();
+ expect(systemFacts()).toBe(facts);
expect(screen.getByTestId('guest-technical-details')).toBe(drawer);
});
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index 05142ee55c..f197017273 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -3409,6 +3409,9 @@ describe('GuestRow accessible reading explanations', () => {
renderGuestRow({
guest: makeGuest({
memory: makeMemory({
+ total: 1000,
+ used: 920,
+ usage: 92,
observation: {
state: 'current',
source: 'status-mem',
diff --git a/scripts/tests/test_guest_disk_reading_docs.py b/scripts/tests/test_guest_disk_reading_docs.py
index 2e2cdc8787..7137b40782 100644
--- a/scripts/tests/test_guest_disk_reading_docs.py
+++ b/scripts/tests/test_guest_disk_reading_docs.py
@@ -37,12 +37,12 @@ class GuestDiskReadingDocsTest(unittest.TestCase):
with self.subTest(label=label):
self.assertIn(label, text)
self.assertIn(f"'{label}'", row)
- for empty_state in ("N/A", "Unavailable", "a dash"):
+ for empty_state in ("Usage unavailable", "a dash"):
self.assertIn(empty_state, text)
assert_disk_reason_wiring(self, row, presentation)
- for distinction in ("select the disk reading indicator", "same guest's details",
+ for distinction in ("select a visible disk reading indicator", "same guest's details",
"phone or with a keyboard", "rather than relying on a hover tooltip",
- "presence or absence of a caption does not establish freshness",
+ "A missing caption does not establish freshness",
"same guest's explanation before treating it as an agent setup problem"):
self.assertIn(distinction, text)
self.assertIn("Filesystems → Status", text)