Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(desktop): align group sidebar selection fixture with URL

zqchris7b2ea1f5e38d
diff --git a/apps/desktop/src/renderer/features/bots/__tests__/botGroupSidebar.test.tsx b/apps/desktop/src/renderer/features/bots/__tests__/botGroupSidebar.test.tsx
index 9beefa7e7c..6f824e8401 100644
--- a/apps/desktop/src/renderer/features/bots/__tests__/botGroupSidebar.test.tsx
+++ b/apps/desktop/src/renderer/features/bots/__tests__/botGroupSidebar.test.tsx
@@ -351,7 +351,7 @@ describe('TeammatesSection group chats', () => {
it('lists groups alongside teammates with an author preview and opens them', async () => {
mocks.groups = [group(), group({ id: 'g2', name: '读书会', lastMessage: null, updatedAt: 1 })];
- mocks.params = { groupId: 'g1' };
+ mocks.pathname = '/bots/groups/g1';
await renderSidebar();
expect(screen.queryByText('bots.groupChat.sidebar.title')).toBeNull();
const rows = screen.getAllByRole('button', { current: 'page' });