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.

Expect a Job's failed count in Worth checking, not its section

rcourtmane72df20395b0
diff --git a/frontend-modern/src/features/kubernetes/__tests__/KubernetesControllersTable.test.tsx b/frontend-modern/src/features/kubernetes/__tests__/KubernetesControllersTable.test.tsx
index 3d92f71010..a899084cad 100644
--- a/frontend-modern/src/features/kubernetes/__tests__/KubernetesControllersTable.test.tsx
+++ b/frontend-modern/src/features/kubernetes/__tests__/KubernetesControllersTable.test.tsx
@@ -276,7 +276,10 @@ describe('KubernetesControllersTable', () => {
expect(within(job).getByText('5m')).toBeInTheDocument();
expect(within(job).getByText('Target')).toBeInTheDocument();
expect(within(job).getByText('10 completions')).toBeInTheDocument();
- expect(within(job).getByText('Failed').closest('tr')).toHaveTextContent('2');
+ // Failed pods are worth checking, so the drawer lifts that row in front.
+ const lifted = screen.getByTestId('resource-drawer-exceptions');
+ expect(within(lifted).getByText('Failed').closest('tr')).toHaveTextContent('2');
+ expect(within(job).queryByText('Failed')).toBeNull();
fireEvent.click(screen.getByText(kubernetesName('billing-rollup')));
const cron = screen.getByTestId('resource-kubernetes-controller-section');