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 typed role-query options in protection refresh tests

pulse-triage[bot]7c5ad1d9234a
diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASProtectionTable.refresh.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASProtectionTable.refresh.test.tsx
index 376c1abc24..726691ed9f 100644
--- a/frontend-modern/src/features/truenas/__tests__/TrueNASProtectionTable.refresh.test.tsx
+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASProtectionTable.refresh.test.tsx
@@ -174,7 +174,7 @@ describe('TrueNAS protection refresh evidence', () => {
expect(document.body).not.toHaveTextContent('previously loaded');
expect(document.body).not.toHaveTextContent('private-provider-detail');
apiFetchJSON.mockResolvedValueOnce({ data: [] });
- await fireEvent.click(screen.getByRole('button', { name: 'Refresh', exact: true }));
+ await fireEvent.click(screen.getByRole('button', { name: 'Refresh' }));
await vi.waitFor(() =>
expect(screen.getByText('No TrueNAS protection activity')).toBeInTheDocument(),
);