diff --git a/d2oracle/edit_test.go b/d2oracle/edit_test.go index cda153960..798d1d0d3 100644 --- a/d2oracle/edit_test.go +++ b/d2oracle/edit_test.go @@ -2518,6 +2518,38 @@ x -> a.b -> a.b.c # hi style.stroke: green } +`, + }, + { + name: "scenario-grandchild", + + text: `a -> b + +scenarios: { + x: { + scenarios: { + c: { + (a -> b)[0].style.bold: true + } + } + } +} +`, + key: `(a -> b)[0].style.stroke-width`, + value: go2.Pointer(`3`), + boardPath: []string{"x", "c"}, + exp: `a -> b + +scenarios: { + x: { + scenarios: { + c: { + (a -> b)[0].style.bold: true + (a -> b)[0].style.stroke-width: 3 + } + } + } +} `, }, }