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.

Check decorative History markers through their painted paths

pulse-triage[bot]9af9a9735cfc
diff --git a/frontend-modern/browser-tests/drawer-integration.cjs b/frontend-modern/browser-tests/drawer-integration.cjs
index ed5646fadb..65e0570a3b 100644
--- a/frontend-modern/browser-tests/drawer-integration.cjs
+++ b/frontend-modern/browser-tests/drawer-integration.cjs
@@ -385,11 +385,18 @@ async function box(locator) {
const rect = await plot.boundingBox();
if (width < 768) await plot.tap({ position: { x: rect.width * 0.6, y: rect.height / 2 } });
else await plot.hover({ position: { x: rect.width * 0.6, y: rect.height / 2 } });
- await page.locator('[data-history-hover-marker="cpu"]').first().waitFor();
+ // Decorative zero-length stroke groups have no geometric bounding box.
+ // Verify attachment/path geometry, then review the rendered pixels.
+ await page
+ .locator('[data-history-hover-marker="cpu"]')
+ .first()
+ .waitFor({ state: 'attached' });
assert.equal(
await page
.locator('[data-history-hover-marker="cpu"]')
.first()
+ .locator('path')
+ .last()
.getAttribute('vector-effect'),
'non-scaling-stroke',
);