import { renderToStaticMarkup } from "react-dom/server"; import { describe, expect, it } from "vitest"; import { ActionRow } from "./action-row.js"; describe("ActionRow", () => { it("renders the default label and description as a ghost action", () => { const markup = renderToStaticMarkup( , ); expect(markup).toContain("Open session"); expect(markup).toContain("Garden agent"); expect(markup).toContain("btn-ghost"); expect(markup).toContain("btn-lg"); }); it("renders compact actions with a leading mark and trailing state", () => { const markup = renderToStaticMarkup(