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.

Respect the Docs heading inset in recovery visual checks

pulse-triage[bot]ae427e6afe1a
diff --git a/frontend-modern/browser-tests/update-recovery-help.cjs b/frontend-modern/browser-tests/update-recovery-help.cjs
index 0ebdcce9a2..fbc4daf6f3 100644
--- a/frontend-modern/browser-tests/update-recovery-help.cjs
+++ b/frontend-modern/browser-tests/update-recovery-help.cjs
@@ -59,7 +59,9 @@ const { chromium, webkit } = require('playwright');
await manual.evaluate((heading) => heading.scrollIntoView({ block: 'start' }));
await page.waitForFunction(() => {
const heading = document.getElementById('manual-rollback');
- return heading && heading.getBoundingClientRect().top >= 0 && heading.getBoundingClientRect().top < 10;
+ // Respect the product's heading scroll-margin rather than demanding
+ // alignment at zero pixels above its normal reading inset.
+ return heading && heading.getBoundingClientRect().top >= 0 && heading.getBoundingClientRect().top < 200;
});
await page.screenshot({ path: path.join(artifacts, `${engine}-manual.png`) });