Skip to content

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

test(memory): cover synced sources rendering

Steven Enamakel43d57d7dd102
diff --git a/app/src/components/memory/MemorySyncedSources.test.tsx b/app/src/components/memory/MemorySyncedSources.test.tsx
index 4ff0214527..ce6b0eb8ef 100644
--- a/app/src/components/memory/MemorySyncedSources.test.tsx
+++ b/app/src/components/memory/MemorySyncedSources.test.tsx
@@ -88,6 +88,15 @@ describe('MemorySyncedSources', () => {
await waitFor(() => expect(screen.queryByTestId('memory-add-source')).not.toBeInTheDocument());
});
+ it('offers every source kind except Composio', async () => {
+ renderWithProviders(<MemorySyncedSources />);
+ fireEvent.click(await screen.findByTestId('memory-sources-add'));
+ const kinds = Array.from(
+ (screen.getByTestId('memory-add-source-kind') as HTMLSelectElement).options
+ ).map(option => option.value);
+ expect(kinds).toEqual(['folder', 'file', 'link', 'github', 'rss']);
+ });
+
it('adds a GitHub source and keeps the dialog open on failure', async () => {
hoisted.add.mockRejectedValue(new Error('INVALID_REQUEST: repo not found'));
renderWithProviders(<MemorySyncedSources />);