fix: separate Scene 11 interrupt context from approval

This commit is contained in:
lda
2026-07-12 09:40:20 +07:00 Verified
parent 4382bb135c
commit b4c442402b
4 changed files with 67 additions and 7 deletions
@@ -53,6 +53,26 @@ const demoWithAppliedCount = (appliedCount: number): DemoTimelineController => (
});
describe("GuidedProductMoment", () => {
it("renders interrupt context without decision controls", () => {
render(
<GuidedProductMoment
beat={findBeat("typed-human-boundary", "interrupt")!}
demo={demo}
contract={contract}
operation={null}
openEvidence={vi.fn()}
/>,
);
const moment = screen.getByRole("region", { name: /current product moment/i });
expect(moment).toHaveAttribute("data-moment", "interrupt");
expect(screen.getByText("Workflow input")).toBeInTheDocument();
expect(screen.getByText("Interrupt payload")).toBeInTheDocument();
expect(screen.queryByRole("group", { name: /operator resume decision/i })).not.toBeInTheDocument();
expect(screen.queryByRole("button", { name: "Submit" })).not.toBeInTheDocument();
expect(screen.queryByRole("button", { name: "Request revision" })).not.toBeInTheDocument();
});
it("makes approval the primary product decision with factual panels", () => {
render(
<GuidedProductMoment