diff --git a/frontend/src/__tests__/pages/dashboard-dead-ends.test.tsx b/frontend/src/__tests__/pages/dashboard-dead-ends.test.tsx index f6a8e0460..daf7c6e0b 100644 --- a/frontend/src/__tests__/pages/dashboard-dead-ends.test.tsx +++ b/frontend/src/__tests__/pages/dashboard-dead-ends.test.tsx @@ -10,11 +10,11 @@ vi.mock('next/navigation', () => ({ })); vi.mock('@/lib/auth-context', () => ({ - useAuth: () => ({ user: { id: 'user-1', is_sysadmin: false }, isHydrated: true, isAuthenticated: true }), + useAuth: () => ({ user: { is_sysadmin: false }, isHydrated: true, isAuthenticated: true }), })); vi.mock('@/lib/tenant-context', () => ({ - useTenant: () => ({ tenantId: 'tenant-1', isTenantReady: false }), + useTenant: () => ({ tenantId: null, isTenantReady: false }), })); vi.mock('@/hooks/use-api', () => ({ @@ -44,7 +44,7 @@ describe('disabled dashboard features', () => { beforeEach(() => vi.stubEnv('NEXT_PUBLIC_ENABLE_EXPERIMENTAL_FEATURES', '')); afterEach(() => vi.unstubAllEnvs()); - it('hides alerts and heartbeat links and replaces the alert count when the feature is off', () => { + it('hides alerts and heartbeat links and marks alerts off when the feature is off', () => { renderPage(); expect(linksTo('/dashboard/alerts')).toHaveLength(0); @@ -75,4 +75,11 @@ describe('disabled dashboard features', () => { expect(screen.getByRole('button', { name: new RegExp(`${disabledAction} \\(coming soon\\)`, 'i') })).toBeDisabled(); expect(screen.queryByRole('textbox')).not.toBeInTheDocument(); }); + + it('keeps the manual Internal Drill path available', async () => { + renderPage(); + + expect(await screen.findByRole('link', { name: 'Requests (Internal Drill)' })).toHaveAttribute('href', '/requests'); + expect(screen.getByText(/create an Internal Drill case, and walk it scope → collect → gap analysis → assemble → submit/)).toBeInTheDocument(); + }); }); diff --git a/frontend/src/app/dashboard/recall-drills/page.tsx b/frontend/src/app/dashboard/recall-drills/page.tsx index 6e6b5f16d..05ed37aa3 100644 --- a/frontend/src/app/dashboard/recall-drills/page.tsx +++ b/frontend/src/app/dashboard/recall-drills/page.tsx @@ -106,6 +106,7 @@ export default function RecallDrillsPage() {