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): preserve editing focus during recovery feedback
pulse-triage[bot]800663fdf336
diff --git a/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx b/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsxindex 3c2fdd0213..82170c4388 100644--- a/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx+++ b/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx@@ -219,6 +219,29 @@ describe('AlertDeliveryHealthCard', () => {describe('recovery feedback beside delivery health', () => {afterEach(() => cleanup());+ it('preserves editing focus and live-region identity when failure feedback changes', () => {+ const [message, setMessage] = createSignal<string | null>(null);+ render(() => <>+ <input aria-label="Destination name" />+ <AlertQueueActionFeedback message={message()} onClear={() => setMessage(null)} />+ </>);+ const input = screen.getByRole('textbox', { name: 'Destination name' });+ const status = screen.getByRole('status');+ expect(status).toHaveAttribute('aria-live', 'polite');+ expect(status).toHaveAttribute('aria-atomic', 'true');+ input.focus();+ fireEvent.input(input, { target: { value: 'Unfinished edit' } });+ for (const failure of [+ 'Unable to retry retained notification deliveries.',+ 'Unable to dismiss retained notification failures.',+ ]) {+ setMessage(failure);+ expect(screen.getByRole('status')).toBe(status);+ expect(status).toHaveTextContent(failure);+ expect(input).toHaveFocus();+ expect(input).toHaveValue('Unfinished edit');+ }+ });it('keeps a mounted live region and returns focus to it when deliberately cleared', () => {const [message, setMessage] = createSignal<string | null>(null);render(() => <AlertQueueActionFeedback message={message()} onClear={() => setMessage(null)} />);