test(ui): restore deconstruction before question choice

This commit is contained in:
2026-08-20 15:58:23 +01:00
parent 4b264c5681
commit 412551c968
3 changed files with 9 additions and 4 deletions
+4 -3
View File
@@ -480,7 +480,7 @@ describe("graph-backed UI rendering", () => {
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(
<ScenarioResultPanels
result={makeGraphResult({
@@ -514,8 +514,9 @@ describe("graph-backed UI rendering", () => {
/>,
);
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", () => {