Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(workflow): remove unused test files

Steven Enamakel04250a7fe19a
diff --git a/app/src/components/flows/WorkflowCopilotPanel.test.tsx b/app/src/components/flows/WorkflowCopilotPanel.test.tsx
index 926c5eaba6..26318edfbc 100644
--- a/app/src/components/flows/WorkflowCopilotPanel.test.tsx
+++ b/app/src/components/flows/WorkflowCopilotPanel.test.tsx
@@ -26,7 +26,16 @@ vi.mock('../../features/conversations/components/ChatThreadView', () => ({
// stub the store hook rather than wrapping every render in a real Redux
// `Provider`, since these tests only assert which card renders, not the
// decide/connect flow those components own (covered by their own test files).
-vi.mock('../../store/hooks', () => ({ useAppDispatch: () => vi.fn() }));
+// `useAppSelector` is stubbed too: the panel now nests its own
+// `AssistantUiRuntimeProvider` (scoped to the copilot's dedicated thread),
+// which reads the selected thread id from the store. These tests stub
+// `ChatThreadView`, so nothing under that runtime is asserted here — the
+// runtime's real behaviour is covered by
+// `WorkflowCopilotPanel.assistantUiRuntime.test.tsx`, which uses a real store.
+vi.mock('../../store/hooks', () => ({
+ useAppDispatch: () => vi.fn(),
+ useAppSelector: () => null,
+}));
// Neither card calls this on mount (only on Approve/Deny/Connect click), but
// stub it defensively so a real network call can never sneak into a render
// test.
diff --git a/app/src/components/layout/shell/RootShellLayout.test.tsx b/app/src/components/layout/shell/RootShellLayout.test.tsx
index 0156d0e9d2..1aae10230b 100644
--- a/app/src/components/layout/shell/RootShellLayout.test.tsx
+++ b/app/src/components/layout/shell/RootShellLayout.test.tsx
@@ -2,13 +2,12 @@ import { fireEvent, screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import { renderWithProviders } from '../../../test/test-utils';
-import RootShellLayout from './RootShellLayout';
+import { SIDEBAR_ICON_WIDTH } from '../../ui';
+import { setSidebarVisible } from '../../../store/layoutSlice';
+import RootShellLayout, { APP_SHELL_LAYOUT_ID } from './RootShellLayout';
// Render i18n keys verbatim so assertions don't depend on locale copy.
vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (k: string) => k }) }));
-// The collapsed rail pulls in routing + nav config; the shell's own geometry is
-// the unit under test.
-vi.mock('./CollapsedNavRail', () => ({ default: () => null }));
// macOS/Tauri-gated, and covered by its own spec.
vi.mock('./WindowDragBar', () => ({ default: () => null }));