Files
Pulse/frontend-modern/browser-tests/backups.tsx
pulse-triage[bot] ac8172c42c Preserve backup coverage row focus across polling snapshots
Reconcile coverage rows by logical keys before windowing. Isolated Chromium checks at desktop and narrow widths preserve keyboard focus, expanded evidence, route and scroll across replacement HTTP snapshots. Include subsystem completion obligations and a content-bound browser receipt.

Does not qualify the full application scroll-jump report in #1869 or reporter resolution.

Change-source: pulse-maintainer
2026-09-05 01:33:47 +01:00

32 lines
1.1 KiB
TypeScript

// Browser fixture: real backup component and router; synthetic HTTP polling.
// Deliberately not a substitute for the full application/WebSocket path.
import { render } from 'solid-js/web';
import { createSignal, onMount, onCleanup } from 'solid-js';
import { Router, Route } from '@solidjs/router';
import { ProxmoxBackupsTable } from '../src/features/proxmox/ProxmoxBackupsTable';
import type { Resource } from '../src/types/resource';
import '../src/index.css';
function Fixture() {
const [workloads, setWorkloads] = createSignal<Resource[]>([]);
onMount(() => {
const poll = async () => setWorkloads(await (await fetch('/fixture/workloads')).json());
void poll();
const timer = setInterval(() => void poll(), 1000);
onCleanup(() => clearInterval(timer));
});
return (
<main style={{ padding: '24px', height: '100vh', overflow: 'auto' }}>
<ProxmoxBackupsTable emptyIcon={<span />} workloads={workloads()} />
</main>
);
}
render(
() => (
<Router>
<Route path="/*" component={Fixture} />
</Router>
),
document.getElementById('root')!,
);