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.

Capture the actual Patrol confirmation viewport on phones

pulse-triage[bot]ef0f53202b12
diff --git a/frontend-modern/browser-tests/patrol-rule-removal.cjs b/frontend-modern/browser-tests/patrol-rule-removal.cjs
index 6f66b16c5d..dffcc66252 100644
--- a/frontend-modern/browser-tests/patrol-rule-removal.cjs
+++ b/frontend-modern/browser-tests/patrol-rule-removal.cjs
@@ -339,7 +339,9 @@ async function journey(
);
await page.screenshot({
path: file,
- fullPage: !visualOnly,
+ // Full-page capture can move a fixed overlay outside the expanded
+ // phone image. Capture the real viewport whenever a dialog is open.
+ fullPage: !visualOnly && (await page.getByRole('dialog').count()) === 0,
animations: visualOnly ? 'disabled' : 'allow',
});
report.captures.push({ path: file.replace('/workspace/', ''), sha256: hash(file) });