feat: make trace evidence full stage

This commit is contained in:
lda
2026-07-10 08:28:47 +07:00 Verified
parent 5dd3aca11b
commit dd0e626722
3 changed files with 42 additions and 2 deletions
@@ -244,6 +244,24 @@ describe("GuidedProductMoment", () => {
expect(screen.getByText("ISSUE-001")).toBeInTheDocument();
});
it("trace makes trace frames primary with compact output support", () => {
const tracedDemo = demoWithAppliedCount(5);
render(
<GuidedProductMoment
beat={findBeat("resume-output-evidence", "trace")!}
demo={tracedDemo}
contract={contract}
operation={null}
openEvidence={vi.fn()}
/>,
);
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();
});
it("trace beat shows trace frames instead of the empty fallback after trace is primed", () => {
const tracedDemo = demoWithAppliedCount(5);