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.

Check the replication state in its labelled detail row

pulse-triage[bot]67532723fcb5
diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASProtectionTable.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASProtectionTable.test.tsx
index f9fd85e2f9..e85eaf2320 100644
--- a/frontend-modern/src/features/truenas/__tests__/TrueNASProtectionTable.test.tsx
+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASProtectionTable.test.tsx
@@ -111,7 +111,7 @@ describe('TrueNASProtectionTable', () => {
await fireEvent.click(document.querySelector('[data-truenas-protection-row="failed"]')!);
const detail = within(screen.getByTestId('truenas-protection-detail'));
expect(detail.getByText('task-failed')).toBeInTheDocument();
- expect(detail.getByText('FAILED')).toBeInTheDocument();
+ expect(detail.getByText('Last state').closest('tr')).toHaveTextContent('FAILED');
expect(detail.queryByText('Started', { exact: true })).not.toBeInTheDocument();
expect(detail.queryByText('Completed', { exact: true })).not.toBeInTheDocument();
await fireEvent.click(detail.getByRole('button', { name: /^Collapse .* details$/ }));