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.

Remove weak ?raw contract-test assertions that pin nothing

rcourtman112a2a68e90b
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 22e8002c7d..949d1892e6 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -36,7 +36,6 @@ describe('App architecture', () => {
expect(appSource).toContain(
"import { dialogStackHasBlockingDialog } from './components/shared/useDialogState';",
);
- expect(appSource).toContain('import {');
expect(appSource).toContain("} from '@/utils/appShellScrollRestoration';");
expect(appSource).toContain('const runtime = useAppRuntimeState();');
expect(appSource).toContain('pendingAppShellRestoreTop');
diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
index 431b0c798f..3a47a02ed3 100644
--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx
@@ -1643,7 +1643,6 @@ describe('ProLicensePanel', () => {
expect(proLicensePlanSectionSource).toContain('currentPlanSummary.privateRuntimeAction');
expect(proLicensePlanSectionSource).toContain('props.activationSuccessSummary');
expect(proLicensePlanSectionSource).toContain('summary().actionUrl');
- expect(proLicensePlanSectionSource).toContain('Button');
expect(proLicensePlanSectionSource).toContain('ButtonLink');
expect(proLicensePlanSectionSource).toContain('variant="warning"');
expect(proLicensePlanSectionSource).toContain('size="settingsActionXs"');
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index bbb5b9afd4..e0c118f4db 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -106,7 +106,6 @@ describe('settings architecture guardrails', () => {
it('keeps Settings on the canonical page shell boundary', () => {
expect(settingsSource).toContain("import { SettingsDialogs } from './SettingsDialogs';");
expect(settingsSource).toContain("import { SettingsPageShell } from './SettingsPageShell';");
- expect(settingsSource).toContain('const {');
expect(settingsSource).toContain('useSettingsNavigation({');
expect(settingsSource).toContain('<SettingsPageShell');
expect(settingsSource).toContain('<SettingsDialogs');
@@ -304,7 +303,6 @@ describe('settings architecture guardrails', () => {
expect(dataHandlingPanelSource).not.toContain('Start Trial');
expect(dataHandlingPanelSource).not.toContain('higher limits');
expect(dataHandlingPanelSource).not.toContain('Upgrade');
- expect(dataHandlingPanelSource).not.toContain('Pro');
expect(auditWebhookPanelSource).toContain('getAuditWebhookFeatureGateCopy({');
expect(auditWebhookPanelSource).toContain('paidRuntimeRequired: paidRuntimeRequired()');
expect(auditWebhookPanelSource).not.toContain('Audit Webhooks (Pro)');
diff --git a/frontend-modern/src/components/__tests__/ErrorBoundary.test.tsx b/frontend-modern/src/components/__tests__/ErrorBoundary.test.tsx
index 7a715b591b..c16aa21b9b 100644
--- a/frontend-modern/src/components/__tests__/ErrorBoundary.test.tsx
+++ b/frontend-modern/src/components/__tests__/ErrorBoundary.test.tsx
@@ -93,7 +93,7 @@ describe('ErrorBoundary', () => {
it('keeps fallback chrome on shared primitives', () => {
expect(errorBoundarySource).toContain('CalloutCard');
- expect(errorBoundarySource).toContain('Button');
+ expect(errorBoundarySource).toContain("import { Button } from '@/components/shared/Button';");
expect(errorBoundarySource).toContain('lucide-solid/icons/alert-triangle');
expect(errorBoundarySource).not.toContain('<svg');
expect(errorBoundarySource).not.toContain(
diff --git a/frontend-modern/src/components/__tests__/UpdateConfirmationModal.test.tsx b/frontend-modern/src/components/__tests__/UpdateConfirmationModal.test.tsx
index cb5811e355..fb4563ec18 100644
--- a/frontend-modern/src/components/__tests__/UpdateConfirmationModal.test.tsx
+++ b/frontend-modern/src/components/__tests__/UpdateConfirmationModal.test.tsx
@@ -48,7 +48,6 @@ describe('UpdateConfirmationModal', () => {
it('keeps update confirmation chrome on shared primitives', () => {
expect(updateConfirmationModalSource).toContain('CalloutCard');
- expect(updateConfirmationModalSource).toContain('Button');
expect(updateConfirmationModalSource).toContain('ActionIconButton');
expect(updateConfirmationModalSource).toContain('lucide-solid/icons/arrow-right');
expect(updateConfirmationModalSource).not.toContain('<svg');
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 827e068bf3..e28091a25a 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -1275,7 +1275,7 @@ describe('shared primitive guardrails', () => {
expect(proxmoxVersionSource).toContain('formatProxmoxVersion');
expect(proxmoxVersionSource).toContain('pve-manager\\/');
- expect(proxmoxVersionSource).toContain('unknown');
+ expect(proxmoxVersionSource).toContain("version.toLowerCase() === 'unknown'");
});
it('keeps product table scroll frames on the shared table shell', () => {
@@ -3331,7 +3331,7 @@ describe('shared primitive guardrails', () => {
}),
]),
);
- expect(errorBoundarySource).toContain('Button');
+ expect(errorBoundarySource).toContain("import { Button } from '@/components/shared/Button';");
expect(errorBoundarySource).not.toContain(
'px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700',
);
@@ -3341,7 +3341,6 @@ describe('shared primitive guardrails', () => {
expect(errorBoundarySource).not.toContain(
'text-xs px-2 py-1 bg-red-600 text-white rounded hover:bg-red-700',
);
- expect(updateConfirmationModalSource).toContain('Button');
expect(updateConfirmationModalSource).toContain('ActionIconButton');
expect(updateConfirmationModalSource).not.toContain(
'px-4 py-2 text-sm font-medium text-base-content hover:bg-surface-hover rounded-md transition-colors',
@@ -3349,7 +3348,6 @@ describe('shared primitive guardrails', () => {
expect(updateConfirmationModalSource).not.toContain(
'px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-md transition-colors',
);
- expect(updateProgressModalSource).toContain('Button');
expect(updateProgressModalSource).toContain('ActionIconButton');
expect(updateProgressModalSource).not.toContain(
'mt-2 px-3 py-1.5 text-xs font-medium text-white bg-blue-600 hover:bg-blue-700 rounded',
@@ -4697,7 +4695,7 @@ describe('shared primitive guardrails', () => {
},
]);
expect(errorBoundarySource).toContain('CalloutCard');
- expect(errorBoundarySource).toContain('Button');
+ expect(errorBoundarySource).toContain("import { Button } from '@/components/shared/Button';");
expect(errorBoundarySource).toContain('lucide-solid/icons/alert-triangle');
expect(errorBoundarySource).not.toContain('<svg');
expect(errorBoundarySource).not.toContain('bg-red-50 dark:bg-red-900 border border-red-200');
@@ -4749,11 +4747,9 @@ describe('shared primitive guardrails', () => {
]);
expect(updateConfirmationModalSource).toContain('CalloutCard');
- expect(updateConfirmationModalSource).toContain('Button');
expect(updateConfirmationModalSource).toContain('ActionIconButton');
expect(updateConfirmationModalSource).toContain('lucide-solid/icons/arrow-right');
expect(updateProgressModalSource).toContain('CalloutCard');
- expect(updateProgressModalSource).toContain('Button');
expect(updateProgressModalSource).toContain('ActionIconButton');
expect(updateProgressModalSource).toContain('LoadingSpinner');