From 35d6a115eb392cd32f8e47948dcd302c659b3ddd Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 22 Aug 2026 20:12:09 +0000 Subject: [PATCH] test(ui): declare access profiles host feature Co-Authored-By: Paperclip --- ui/src/pages/AgentToolsTab.test.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/pages/AgentToolsTab.test.tsx b/ui/src/pages/AgentToolsTab.test.tsx index 5ba996769b9..acb413b2594 100644 --- a/ui/src/pages/AgentToolsTab.test.tsx +++ b/ui/src/pages/AgentToolsTab.test.tsx @@ -22,6 +22,10 @@ const mockToolsApi = vi.hoisted(() => ({ vi.mock("../api/tools", () => ({ toolsApi: mockToolsApi })); +vi.mock("../context/RuntimeFeaturesContext", () => ({ + useRuntimeFeatures: () => ({ hasFeature: () => true }), +})); + // Render the company-aware Link as a plain anchor so we don't need a Router. vi.mock("@/lib/router", () => ({ Link: ({ to, children, ...rest }: { to: string; children: unknown }) =>