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): protect demo install link visibility and dismissal
pulse-triage[bot]b5011638058f
diff --git a/frontend-modern/src/components/__tests__/DemoBanner.test.tsx b/frontend-modern/src/components/__tests__/DemoBanner.test.tsxindex 4d96920ed0..d25d3093d8 100644--- a/frontend-modern/src/components/__tests__/DemoBanner.test.tsx+++ b/frontend-modern/src/components/__tests__/DemoBanner.test.tsx@@ -72,6 +72,7 @@ describe('DemoBanner', () => {await renderBanner();expect(screen.queryByText('Demo instance with mock data (read-only)')).not.toBeInTheDocument();+ expect(screen.queryByRole('link')).not.toBeInTheDocument();});/* ---------- Dismiss ---------- */@@ -91,6 +92,7 @@ describe('DemoBanner', () => {screen.queryByText('Demo instance with mock data (read-only)'),).not.toBeInTheDocument();});+ expect(screen.queryByRole('link')).not.toBeInTheDocument();});it('persists dismissal to sessionStorage', async () => {@@ -112,5 +114,22 @@ describe('DemoBanner', () => {await renderBanner();expect(screen.queryByText('Demo instance with mock data (read-only)')).not.toBeInTheDocument();+ expect(screen.queryByRole('link')).not.toBeInTheDocument();+ });++ it('keeps the install handoff dismissed across remounts but restores it in a new session', async () => {+ presentationPolicyIsDemoModeMock.mockReturnValue(true);+ await renderBanner();+ fireEvent.click(screen.getByRole('button', { name: 'Dismiss demo banner' }));+ cleanup();++ await renderBanner();+ expect(screen.queryByRole('link')).not.toBeInTheDocument();+ cleanup();++ sessionStorage.clear();+ await renderBanner();+ expect(screen.getByRole('link', { name: 'Run Pulse on your own hardware' })).toBeInTheDocument();+ expect(screen.getByText('Demo instance with mock data (read-only)')).toBeInTheDocument();});});