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(' { 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(' { 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(' { 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(' { ]); 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');