import type { WorkflowCommentList } from './types' import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { Suspense, useState } from 'react' import ReactFlow, { ReactFlowProvider } from 'reactflow' import { page, userEvent } from 'vite-plus/test/browser' import { render } from 'vitest-browser-react' import { CommentIcon } from './comment-icon' import { CommentInput } from './comment-input' import 'reactflow/dist/style.css' vi.mock('@/features/account-profile/client', () => ({ userProfileQueryOptions: () => ({ queryKey: ['profile'], queryFn: async () => ({ profile: { id: 'author', name: 'Alice', avatar_url: null } }), }), })) vi.mock('./comment-preview', () => ({ default: () => null })) vi.mock('./mention-input', () => ({ MentionInput: () =>