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
fix(tests): format alert delivery card coverage
pulse-triage[bot]f513acda4036
diff --git a/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx b/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsxindex 49c738dc4b..099a00675d 100644--- a/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx+++ b/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx@@ -137,37 +137,48 @@ describe('AlertDeliveryHealthCard', () => {expect(screen.getByRole('alert')).toHaveTextContent('classified as authentication (2)');setUnavailable(true);- expect(screen.getByRole('alert')).toHaveTextContent('Notification delivery status is unavailable');+ expect(screen.getByRole('alert')).toHaveTextContent(+ 'Notification delivery status is unavailable',+ );expect(screen.getByRole('alert')).toHaveTextContent('send a test before relying on delivery');expect(screen.getByRole('alert')).not.toHaveTextContent('classified as authentication (2)');setUnavailable(false);expect(screen.getByRole('alert')).toHaveTextContent('Notification delivery needs attention');expect(screen.getByRole('alert')).toHaveTextContent('classified as authentication (2)');- expect(screen.getByRole('alert')).not.toHaveTextContent('Notification delivery status is unavailable');+ expect(screen.getByRole('alert')).not.toHaveTextContent(+ 'Notification delivery status is unavailable',+ );});- it.each(['retry', 'dismiss'] as const)('disables conflicting controls throughout %s and restores them afterwards', (action) => {- const [busy, setBusy] = createSignal(true);- render(() => (- <AlertDeliveryHealthCard- health={degradedHealth}- unavailable={false}- refreshing={false}- retryingFailures={action === 'retry' && busy()}- dismissingFailures={action === 'dismiss' && busy()}- onRefresh={vi.fn()}- onRetryFailures={vi.fn()}- onDismissFailures={vi.fn()}- />- ));-- const labels = ['Refresh delivery status', 'Retry retained deliveries', 'Dismiss retained failures'];- for (const name of labels) expect(screen.getByRole('button', { name })).toBeDisabled();- expect(screen.getByRole('alert')).toHaveTextContent('Notification delivery needs attention');- setBusy(false);- for (const name of labels) expect(screen.getByRole('button', { name })).toBeEnabled();- expect(screen.getByRole('alert')).toHaveTextContent('Notification delivery needs attention');- });+ it.each(['retry', 'dismiss'] as const)(+ 'disables conflicting controls throughout %s and restores them afterwards',+ (action) => {+ const [busy, setBusy] = createSignal(true);+ render(() => (+ <AlertDeliveryHealthCard+ health={degradedHealth}+ unavailable={false}+ refreshing={false}+ retryingFailures={action === 'retry' && busy()}+ dismissingFailures={action === 'dismiss' && busy()}+ onRefresh={vi.fn()}+ onRetryFailures={vi.fn()}+ onDismissFailures={vi.fn()}+ />+ ));++ const labels = [+ 'Refresh delivery status',+ 'Retry retained deliveries',+ 'Dismiss retained failures',+ ];+ for (const name of labels) expect(screen.getByRole('button', { name })).toBeDisabled();+ expect(screen.getByRole('alert')).toHaveTextContent('Notification delivery needs attention');+ setBusy(false);+ for (const name of labels) expect(screen.getByRole('button', { name })).toBeEnabled();+ expect(screen.getByRole('alert')).toHaveTextContent('Notification delivery needs attention');+ },+ );it('keeps the overview treatment concise and points directly to delivery evidence', () => {render(() => (