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 System controls scoped to the composed drawer surfaces

pulse-triage[bot]c0cb7a02db65
diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
index 3a6fbefdcd..cf06431aa5 100644
--- a/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
+++ b/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
@@ -938,7 +938,9 @@ describe('GuestDrawer', () => {
onClose={vi.fn()}
/>
));
- expect(technicalDetails().getByText('Ubuntu • 22.04')).toBeInTheDocument();
+ expect(
+ within(screen.getByTestId('guest-drawer-facts')).getByText('Ubuntu • 22.04'),
+ ).toBeInTheDocument();
});
it('shows OS name only when version is missing', () => {
@@ -948,7 +950,9 @@ describe('GuestDrawer', () => {
onClose={vi.fn()}
/>
));
- expect(technicalDetails().getByText('Debian')).toBeInTheDocument();
+ expect(
+ within(screen.getByTestId('guest-drawer-facts')).getByText('Debian'),
+ ).toBeInTheDocument();
});
it('shows OS version only when name is missing', () => {
@@ -958,7 +962,9 @@ describe('GuestDrawer', () => {
onClose={vi.fn()}
/>
));
- expect(technicalDetails().getByText('11.0')).toBeInTheDocument();
+ expect(
+ within(screen.getByTestId('guest-drawer-facts')).getByText('11.0'),
+ ).toBeInTheDocument();
});
it('shows IP addresses', () => {
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 664c2c4d97..4fa2004c81 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestDrawer.system.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestDrawer.system.test.tsx
@@ -29,7 +29,13 @@ const guest = (overrides: Partial<WorkloadGuest> = {}): WorkloadGuest => ({
...overrides,
});
-const systemRow = () => screen.getByText('System', { selector: 'td' }).closest('tr')!;
+// Upstream keeps the full record in a collapsed, mounted Details section.
+// Exercise its native open state before judging the retained System row.
+const systemRow = () => {
+ const details = screen.getByTestId('guest-technical-details') as HTMLDetailsElement;
+ details.open = true;
+ return within(details).getByText('System', { selector: 'td' }).closest('tr')!;
+};
afterEach(cleanup);