{ const { conversationsStore } = await import('$lib/stores/conversations.svelte'); waitFor(() => setTimeout(() => { conversationsStore.conversations = mockConversations; }, 0) ); }} >
{ const { conversationsStore } = await import('$lib/stores/conversations.svelte'); waitFor(() => setTimeout(() => { conversationsStore.conversations = mockConversations; }, 0) ); // Expand sidebar first, then click Search in the expanded button list const logoTrigger = screen.getByRole('button', { name: /expand navigation/i }); await userEvent.click(logoTrigger); const searchTrigger = screen.getByText('Search'); userEvent.click(searchTrigger); }} >
{ // Mock empty conversations store const { conversationsStore } = await import('$lib/stores/conversations.svelte'); conversationsStore.conversations = []; }} >