import { ApprovalRequestId } from "@t3tools/contracts"; import { renderToStaticMarkup } from "react-dom/server"; import { describe, expect, it } from "vite-plus/test"; import { ComposerPendingApprovalPanel } from "./ComposerPendingApprovalPanel"; describe("ComposerPendingApprovalPanel", () => { it("renders complete multiline command details without hover or truncation", () => { const detail = `bun run release -- ${"long-argument ".repeat(20)}\nsecond line`; const markup = renderToStaticMarkup( , ); expect(markup).toContain('data-approval-detail="complete"'); expect(markup).toContain('aria-label="Command"'); expect(markup).toContain(detail); expect(markup).not.toContain("truncate"); expect(markup).not.toContain("line-clamp"); }); });