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
import { render, screen } from '@solidjs/testing-library';
import { describe, expect, it, vi } from 'vitest';
import NotFound from '@/pages/NotFound';
const navigate = vi.fn();
vi.mock('@solidjs/router', () => ({
useLocation: () => ({ pathname: '/missing', search: '?from=test' }),
useNavigate: () => navigate,
}));
describe('NotFound', () => {
it('offers a touch-sized route back to the workspace', () => {
render(() => <NotFound />);
expect(screen.getByText('No route matched /missing?from=test.')).toBeInTheDocument();
const action = screen.getByRole('button', { name: 'Go to workspace' });
expect(action).toHaveClass('min-h-11');
action.click();
expect(navigate).toHaveBeenCalledWith('/');
});
});