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.

Use the supported role-query options in connectivity table tests

pulse-triage[bot]515294d2a02d
diff --git a/frontend-modern/src/components/Alerts/ResourceTable.test.tsx b/frontend-modern/src/components/Alerts/ResourceTable.test.tsx
index 57ccbc4f5b..ba45b50501 100644
--- a/frontend-modern/src/components/Alerts/ResourceTable.test.tsx
+++ b/frontend-modern/src/components/Alerts/ResourceTable.test.tsx
@@ -256,9 +256,7 @@ describe('ResourceTable', () => {
expect(
screen.queryByRole('switch', { name: 'Alerts for Runtime A' }),
).not.toBeInTheDocument();
- expect(
- screen.queryByRole('columnheader', { name: 'Alerts', exact: true }),
- ).not.toBeInTheDocument();
+ expect(screen.queryByRole('columnheader', { name: 'Alerts' })).not.toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'Offline alerts for Runtime A: On' }));
expect(onToggleNodeConnectivity).toHaveBeenCalledWith('runtime-a');
expect(onToggleDisabled).not.toHaveBeenCalled();