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.

Backfill license-store mock exports in two settings test suites

rcourtman3c1138ff3cfb
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsReadOnlyPanels.test.tsx b/frontend-modern/src/components/Settings/__tests__/settingsReadOnlyPanels.test.tsx
index b4e861bea8..6bc88c8b2f 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsReadOnlyPanels.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/settingsReadOnlyPanels.test.tsx
@@ -25,6 +25,8 @@ vi.mock('@/stores/license', () => ({
hasFeature: (...args: unknown[]) => hasFeatureMock(...args),
runtimeCapabilitiesLoaded: () => true,
loadRuntimeCapabilities: (...args: unknown[]) => loadLicenseStatusMock(...args),
+ getRuntimeCapabilityBlock: () => undefined,
+ isRuntimeCapabilityBlocked: () => false,
}));
vi.mock('@/stores/licenseCommercial', () => ({
diff --git a/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.test.tsx b/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.test.tsx
index 863312c13e..1e5d6f4a8c 100644
--- a/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/useSettingsAccess.test.tsx
@@ -17,6 +17,8 @@ vi.mock('@/stores/license', () => ({
hasFeature: (...args: unknown[]) => hasFeatureMock(...args),
isHostedModeEnabled: (...args: unknown[]) => isHostedModeEnabledMock(...args),
runtimeCapabilitiesLoaded: (...args: unknown[]) => runtimeCapabilitiesLoadedMock(...args),
+ getRuntimeCapabilityBlock: () => undefined,
+ isRuntimeCapabilityBlocked: () => false,
}));
vi.mock('@/stores/sessionPresentationPolicy', () => ({