Python
test(observability): the Activity tabs test mocks the ratings call (T3-10)
Devika Verma5ef96a1825a9
diff --git a/surfaces/gui/src/components/AuditView.tabs.test.tsx b/surfaces/gui/src/components/AuditView.tabs.test.tsxindex 430fba1f..1ecf9348 100644--- a/surfaces/gui/src/components/AuditView.tabs.test.tsx+++ b/surfaces/gui/src/components/AuditView.tabs.test.tsx@@ -9,6 +9,7 @@ vi.mock("../api", () => ({getUsageRollup: vi.fn(async () => empty),getHeaviestTurns: vi.fn(async () => ({ turns: [] })),getApproverStrip: vi.fn(async () => ({ shown: false })),+ getRatings: vi.fn(async () => ({ up: 0, down: 0, reasons: {}, down_turns: [], more: 0 })),getMachines: vi.fn(async () => ({ machines: [], armed: false })),}));vi.mock("./IntegrationsView", () => ({ PanelHead: ({ title }: { title: string }) => <h1>{title}</h1> }));