feat: give the agent handoff and demo one visual spine

This commit is contained in:
lda
2026-07-11 09:27:03 +07:00 Verified
parent 4951d2487c
commit 5b1368d5ee
6 changed files with 188 additions and 28 deletions
@@ -72,6 +72,7 @@ describe("GuidedProductMoment", () => {
);
expect(screen.getByRole("region", { name: /current product moment/i })).toHaveAttribute("data-moment", "approval");
expect(screen.getByRole("region", { name: /current product moment/i })).toHaveAttribute("data-primary-surface", "interrupt-approval");
expect(screen.getByText(/Run is paused/i)).toBeInTheDocument();
expect(screen.getByText("Workflow input")).toBeInTheDocument();
expect(screen.getByText("project-brief.md")).toBeInTheDocument();
@@ -92,6 +93,7 @@ describe("GuidedProductMoment", () => {
);
expect(screen.getByRole("region", { name: /current product moment/i })).toHaveAttribute("data-moment", "resume");
expect(screen.getByRole("region", { name: /current product moment/i })).toHaveAttribute("data-primary-surface", "resume-output");
expect(screen.getByLabelText("workflow.runs.resume operation")).toBeInTheDocument();
});
@@ -257,6 +259,7 @@ describe("GuidedProductMoment", () => {
/>,
);
expect(screen.getByRole("region", { name: /current product moment/i })).toHaveAttribute("data-support-surface", "output-summary");
expect(screen.getByRole("region", { name: /workflow trace proof/i })).toBeInTheDocument();
expect(screen.getByRole("region", { name: /workflow output summary/i })).toHaveAttribute("data-output-priority", "summary");
expect(screen.queryByText("No trace frames captured.")).not.toBeInTheDocument();