// @vitest-environment jsdom
import { describe, it, expect } from "vitest";

describe("ChatMessage", () => {
  it("exports ChatMessage component", async () => {
    const mod = await import("./ChatMessage");
    expect(mod.ChatMessage).toBeDefined();
  });

  it.todo("renders user message as right-aligned bubble with plain text");
  it.todo("renders assistant message with ChatMarkdownMessage");
  it.todo("renders ChatMessageIdentityBar for assistant messages when agentName is provided");
  it.todo("shows edit pencil on hover for user messages");
  it.todo("shows retry button on hover for assistant messages");
  it.todo("hides retry button when isAnyStreaming is true");
  it.todo("switches to inline edit textarea on pencil click");
  it.todo("renders ChatStreamingCursor when isStreaming is true");
  it.todo("Save edit button disabled when edit textarea is empty");
  it.todo("Discard edit reverts to read-only bubble");
});
