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): guard unsaved state during delivery recovery
pulse-triage[bot]f5d2c5d143f5
diff --git a/frontend-modern/src/features/alerts/__tests__/DestinationsTab.recoveryediting.test.tsx b/frontend-modern/src/features/alerts/__tests__/DestinationsTab.recoveryediting.test.tsxindex 39d6a8be23..f65c6bfac1 100644--- a/frontend-modern/src/features/alerts/__tests__/DestinationsTab.recoveryediting.test.tsx+++ b/frontend-modern/src/features/alerts/__tests__/DestinationsTab.recoveryediting.test.tsx@@ -168,6 +168,7 @@ describe('DestinationsTab recovery while editing SMTP', () => {const editor = screen.getByRole('textbox', { name: 'SMTP server' });fireEvent.input(editor, { target: { value: 'unfinished.smtp.example' } });expect(dirty).toHaveBeenCalledWith(true);+ dirty.mockClear();const status = screen.getByRole('status');let reject!: (error: Error) => void;@@ -184,6 +185,7 @@ describe('DestinationsTab recovery while editing SMTP', () => {expect(editor).toHaveFocus();expect(editor).toHaveValue('unfinished.smtp.example');expect(emailConfig().server).toBe('unfinished.smtp.example');+ expect(dirty).not.toHaveBeenCalledWith(false);expect(screen.getByText('SMTP fixture rejected')).toBeInTheDocument();expect(NotificationsAPI.getDeliveryLog).toHaveBeenCalledTimes(1);@@ -212,6 +214,7 @@ describe('DestinationsTab recovery while editing SMTP', () => {expect(editor).toHaveFocus();expect(editor).toHaveValue('unfinished.smtp.example');expect(emailConfig().server).toBe('unfinished.smtp.example');+ expect(dirty).not.toHaveBeenCalledWith(false);expect(screen.getByRole('status')).toBe(status);expect(status).toBeEmptyDOMElement();expect(screen.getByText('SMTP fixture rejected')).toBeInTheDocument();