From 412551c9688ee71e0717990017b33be9894d840a Mon Sep 17 00:00:00 2001 From: robbond Date: Thu, 20 Aug 2026 15:58:23 +0100 Subject: [PATCH] test(ui): restore deconstruction before question choice --- components/reasoning-workspace.jsx | 4 ++++ components/scenario-form.jsx | 2 +- tests/ui/scenario-form.test.jsx | 7 ++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/components/reasoning-workspace.jsx b/components/reasoning-workspace.jsx index d1df483..c994cc2 100644 --- a/components/reasoning-workspace.jsx +++ b/components/reasoning-workspace.jsx @@ -1115,6 +1115,7 @@ export default function ReasoningWorkspace({ {/* ── Loading overlays ─────────────────────────────── */} {status === "loading" && ( {/* ── Left lane: active conversation & notebook ───────── */}
+ {/* Current investigation (prominent hero section) */} + + {/* RTO.27A — branch notebook content (replaces question-queue when in experiment mode) */} {experimentalBranches && experimentalBranches.length > 0 && ( { expect(html).not.toContain("Update situation"); }); - it("renders the initial graph-backed commercial question when start-case reselection succeeds", () => { + it("renders diagnostics when a result includes them", () => { const html = renderToStaticMarkup( { />, ); - expect(html).toContain("Who experiences this problem?"); - expect(html).toContain("Selected Question"); + // ScenarioResultPanels renders diagnostics but delegates question rendering to SituationGraphView / ReasoningWorkspace + expect(html).toContain("Diagnostics"); + expect(html).toContain("test"); }); it("renders diagnostics", () => {