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.

Sweep three more stale test assertions to match canonical state

rcourtmane7060bfcd1f9
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx
index d45bd357b1..dc1092740a 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx
@@ -252,11 +252,14 @@ describe('UnifiedResourceTable workloads links', () => {
expect(getByText('Service Infrastructure')).toBeInTheDocument();
expect(getByText('PBS Services')).toBeInTheDocument();
expect(getByText('PMG Services')).toBeInTheDocument();
- expect(getByText('Datastores')).toBeInTheDocument();
+ // Service Infrastructure dual-table renders the compact column label.
+ expect(getByText('Stores')).toBeInTheDocument();
expect(getByText('Activity')).toBeInTheDocument();
- expect(getAllByText('Action').length).toBeGreaterThan(0);
+ // Compact layout uses 'Open' for the action column.
+ expect(getAllByText('Open').length).toBeGreaterThan(0);
expect(getByText('Queue')).toBeInTheDocument();
- expect(getByText('Deferred')).toBeInTheDocument();
+ // Compact layout abbreviates Deferred to 'Def'.
+ expect(getByText('Def')).toBeInTheDocument();
expect(getByText('Hold')).toBeInTheDocument();
expect(getByText('Nodes')).toBeInTheDocument();
diff --git a/frontend-modern/src/components/Settings/__tests__/SuggestProfileModal.test.tsx b/frontend-modern/src/components/Settings/__tests__/SuggestProfileModal.test.tsx
index 1e8687787c..c152f12ec4 100644
--- a/frontend-modern/src/components/Settings/__tests__/SuggestProfileModal.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/SuggestProfileModal.test.tsx
@@ -140,7 +140,9 @@ describe('SuggestProfileModal', () => {
expect(await screen.findByText('Production Servers')).toBeInTheDocument();
expect(screen.getByText('Settings Preview')).toBeInTheDocument();
- expect(screen.getByText('Enable Docker Monitoring')).toBeInTheDocument();
+ // KNOWN_SETTINGS now interpolates getSourcePlatformLabel('docker'),
+ // which resolves to 'Docker / Podman'.
+ expect(screen.getByText('Enable Docker / Podman monitoring')).toBeInTheDocument();
expect(screen.getByText('Reporting Interval')).toBeInTheDocument();
expect(screen.getByText('Unknown (ignored)')).toBeInTheDocument();
diff --git a/frontend-modern/src/utils/__tests__/recoveryCanonicalVocabulary.test.ts b/frontend-modern/src/utils/__tests__/recoveryCanonicalVocabulary.test.ts
index 6249b1ea8a..1ca61fb40d 100644
--- a/frontend-modern/src/utils/__tests__/recoveryCanonicalVocabulary.test.ts
+++ b/frontend-modern/src/utils/__tests__/recoveryCanonicalVocabulary.test.ts
@@ -17,10 +17,15 @@ describe('recovery canonical vocabulary', () => {
});
it('keeps recovery platform filter iterators platform-first', () => {
- expect(recoveryProtectedInventorySectionSource).toContain('{(platform) => (');
- expect(recoveryHistorySectionSource).toContain('{(platform) => (');
- expect(recoveryProtectedInventorySectionSource).not.toContain('{(provider) => (');
- expect(recoveryHistorySectionSource).not.toContain('{(provider) => (');
+ // The intent of this guardrail is the canonical "platform" naming over
+ // legacy "provider", not a specific callback shape. Both files now use
+ // block-body callbacks (`(platform) => { const badge = ...; return ... }`)
+ // because they need a local for the badge resolution, so the original
+ // expression-body pattern `(platform) => (` no longer matches.
+ expect(recoveryProtectedInventorySectionSource).toContain('(platform) =>');
+ expect(recoveryHistorySectionSource).toContain('(platform) =>');
+ expect(recoveryProtectedInventorySectionSource).not.toContain('(provider) =>');
+ expect(recoveryHistorySectionSource).not.toContain('(provider) =>');
});
it('keeps recovery activity focus labels item-first', () => {