import { cleanup, fireEvent, render, screen } from '@testing-library/react' import { useState } from 'react' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { translateBots } from './i18n-test-helper' import type { GroupMember } from './types' // Group-composer mentions (#89049): the core composer's @-completion area // doesn't mount inside workspace tiles, so the room's composers wrap the SDK // input with a member-scoped popover of their own. Everything it inserts has // to be a string parseGroupChatMentions resolves. const { host } = vi.hoisted(() => ({ host: {} as Record })) vi.mock('@hermes/plugin-sdk', async () => { const { pluginSdkMock } = await import('./group-test-utils') const base = await pluginSdkMock(host) return { ...base, Button: (props: React.ComponentProps<'button'>) =>