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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
test(web): prevent stale delivery success after log refresh
pulse-triage[bot]0f0fc5858ad5
diff --git a/frontend-modern/src/features/alerts/AlertDeliveryLogCard.test.tsx b/frontend-modern/src/features/alerts/AlertDeliveryLogCard.test.tsxindex 723906f962..193de3669f 100644--- a/frontend-modern/src/features/alerts/AlertDeliveryLogCard.test.tsx+++ b/frontend-modern/src/features/alerts/AlertDeliveryLogCard.test.tsx@@ -87,6 +87,39 @@ describe('AlertDeliveryLogCard', () => {expect(screen.getByText(/Test sends skip the queue/)).toBeInTheDocument();});+ it.each([+ ['retry', 'Retrying'],+ ['failed', 'Failed'],+ ['dead_letter', 'Failed, retries exhausted'],+ ['cancelled', 'Cancelled'],+ ] as const)('replaces a previous successful row with %s evidence on refresh', (outcome, label) => {+ const [currentLog, setCurrentLog] = createSignal<NotificationDeliveryLog>({+ ...log,+ entries: [log.entries[1]],+ });+ render(() => (+ <AlertDeliveryLogCard+ log={currentLog()}+ unavailable={false}+ refreshing={false}+ onRefresh={vi.fn()}+ webhooks={webhooks}+ />+ ));+ expect(screen.getByText('Delivered')).toBeInTheDocument();++ setCurrentLog({+ ...log,+ entries: [{ ...log.entries[0], outcome }],+ });++ expect(screen.getByText(label)).toBeInTheDocument();+ expect(screen.queryByText('Delivered')).not.toBeInTheDocument();+ expect(screen.queryByText('disk-critical-1')).not.toBeInTheDocument();+ expect(screen.getByText('Ops Discord')).toBeInTheDocument();+ expect(screen.getAllByRole('listitem')).toHaveLength(1);+ });+it('renders an honest empty state when no deliveries were attempted', () => {render(() => (<AlertDeliveryLogCard