Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Measure guidance focus after the rendered frame settles

pulse-triage[bot]d63c18c2836d
diff --git a/frontend-modern/browser-tests/guest-disk-docs-context.cjs b/frontend-modern/browser-tests/guest-disk-docs-context.cjs
index cc21166a00..666eacf75d 100644
--- a/frontend-modern/browser-tests/guest-disk-docs-context.cjs
+++ b/frontend-modern/browser-tests/guest-disk-docs-context.cjs
@@ -188,6 +188,11 @@ const linkPresentation = (link) =>
await guidance.scrollIntoViewIfNeeded();
await page.keyboard.press('Tab');
await guidance.focus();
+ record.retained_link_focus_before_frame = await linkPresentation(guidance);
+ await page.evaluate(async () => {
+ await document.fonts.ready;
+ await new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(resolve)));
+ });
record.retained_link_focus = await linkPresentation(guidance);
assert.equal(record.retained_link_focus.focused, true);
assert.equal(record.retained_link_focus.focus_visible, true);