test(frontend): veraltete Testerwartungen an aktuelle UI angepasst — Tasks 3-Spalten-Layout mit Toolbar-Store statt Inline-Button, MiniAppBlock async-Fetch + DOMPurify-Attributentfernung, Router-QueryClientProvider, Toast-Mocks auf flache echte API-Signatur, automation-Mocks mockResolvedValue

This commit is contained in:
Agent Zero
2026-08-27 08:26:27 +02:00
parent 1a24e3e999
commit 1c52d3e502
6 changed files with 65 additions and 36 deletions
@@ -45,6 +45,7 @@ describe('Automation API Hooks', () => {
return { data: [], isLoading: false };
});
mockApiGet.mockResolvedValue([]);
useAutomations();
expect(mockApiGet).toHaveBeenCalledWith('/automation');
});
@@ -61,6 +62,7 @@ describe('Automation API Hooks', () => {
return { data: [], isLoading: false };
});
mockApiGet.mockResolvedValue([]);
useAgents();
expect(mockApiGet).toHaveBeenCalledWith('/agents');
});