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.

test(workloads): update GuestRow tests for new Availability column

rcourtmanca299ec72923
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index 34a4a3acf9..88cd6ae6c1 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -885,7 +885,7 @@ describe('GUEST_COLUMNS', () => {
it('has the expected number of columns', () => {
// name, runtime, type, info, vmid, cpu, memory, disk, ip, uptime, node,
// image, namespace, context, aiContext, backup, tags, os, netIo, diskIo, update
- expect(GUEST_COLUMNS.length).toBe(21);
+ expect(GUEST_COLUMNS.length).toBe(22);
});
it('has name as the first column', () => {
@@ -899,7 +899,7 @@ describe('GUEST_COLUMNS', () => {
it('keeps Docker I/O and update headers aligned with the rendered row cells', () => {
const columnIds = GUEST_COLUMNS.map((column) => column.id);
- expect(columnIds.slice(0, 2)).toEqual(['name', 'runtime']);
+ expect(columnIds.slice(0, 3)).toEqual(['name', 'availability', 'runtime']);
const dockerTailStart = columnIds.indexOf('netIo');
expect(columnIds.slice(dockerTailStart)).toEqual(['netIo', 'diskIo', 'update']);
});
@@ -965,6 +965,7 @@ describe('GUEST_COLUMNS', () => {
expect(tabletColumns.map((column) => column.id)).toEqual([
'name',
+ 'availability',
'type',
'info',
'cpu',
@@ -973,6 +974,7 @@ describe('GUEST_COLUMNS', () => {
]);
expect(compactColumns.map((column) => column.id)).toEqual([
'name',
+ 'availability',
'type',
'info',
'cpu',