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.

Let the truncation guardrail accept a toned block span

rcourtmanc91a7e4379af
diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
index d40b0fa96d..9af214f510 100644
--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
@@ -529,7 +529,8 @@ describe('platform overview layout guardrails', () => {
]) {
expect(source).not.toMatch(/class="[^"]*\binline-block\b[^"]*\btruncate\b/);
expect(source).not.toMatch(/class="[^"]*\btruncate\b[^"]*\binline-block\b/);
- expect(source).toContain('class="block truncate"');
+ // A block span that ellipsizes in its own cell, toned or not.
+ expect(source).toMatch(/class=(?:"|\{`)block truncate\b/);
}
});