mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
197c588c32
CR Round 3 final: my auth.spec.ts e2e was asserting on [data-message-role="assistant"] which is the v1 react-ui RenderMessage attribute. The auth demo uses v2 CopilotChat — its CopilotChatAssistantMessage only emits data-testid="copilot-assistant-message". The selector would never have matched and both tests would have timed out at 30s when actually run. Verified via grep: - packages/react-core/src/v2/components/chat/CopilotChatAssistantMessage.tsx:192 emits data-testid="copilot-assistant-message" (no data-message-role) - packages/react-ui/src/components/chat/messages/RenderMessage.tsx:32,41 emits data-message-role="user"/"assistant" (v1 path) - All sibling specs in langgraph-python/tests/e2e/ correctly use data-testid="copilot-assistant-message" One-character switch from data-message-role to data-testid with the canonical v2 testid value. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>