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 toast announcement and focus semantics
pulse-triage[bot]cdab4e1c0c24
diff --git a/frontend-modern/src/components/Toast/__tests__/Toast.test.tsx b/frontend-modern/src/components/Toast/__tests__/Toast.test.tsxindex 047da5a100..632474b355 100644--- a/frontend-modern/src/components/Toast/__tests__/Toast.test.tsx+++ b/frontend-modern/src/components/Toast/__tests__/Toast.test.tsx@@ -11,6 +11,27 @@ describe('Toast', () => {vi.useRealTimers();});+ it.each([+ ['error', 'alert', 'assertive'],+ ['warning', 'alert', 'assertive'],+ ['success', 'status', 'polite'],+ ['info', 'status', 'polite'],+ ] as const)('preserves %s announcement semantics without moving focus', (type, role, live) => {+ render(() => <><button>Recovery action</button><ToastContainer /></>);+ const action = screen.getByRole('button', { name: 'Recovery action' });+ action.focus();++ window.showToast(type, 'Recovery result', 'Action context');++ const announcement = screen.getByRole(role);+ expect(announcement).toHaveAttribute('aria-live', live);+ expect(announcement).toHaveAttribute('aria-atomic', 'true');+ expect(announcement).toHaveTextContent('Recovery result');+ expect(announcement).toHaveTextContent('Action context');+ expect(action).toHaveFocus();+ expect(screen.queryByRole(role === 'alert' ? 'status' : 'alert')).not.toBeInTheDocument();+ });+it('keeps all toasts created within a batch', () => {render(() => <ToastContainer />);