diff --git a/packages/dmn-editor/src/diagram/connections/graphStructure.ts b/packages/dmn-editor/src/diagram/connections/graphStructure.ts index b4e155ece35..a77b1961d97 100644 --- a/packages/dmn-editor/src/diagram/connections/graphStructure.ts +++ b/packages/dmn-editor/src/diagram/connections/graphStructure.ts @@ -72,6 +72,7 @@ export const graphStructure: Map>> = new M NODE_TYPES.decision, NODE_TYPES.bkm, NODE_TYPES.decisionService, + NODE_TYPES.group, NODE_TYPES.knowledgeSource, ]), ], diff --git a/packages/dmn-editor/src/diagram/nodes/Nodes.tsx b/packages/dmn-editor/src/diagram/nodes/Nodes.tsx index 724e8a7a4a0..043ff69f967 100644 --- a/packages/dmn-editor/src/diagram/nodes/Nodes.tsx +++ b/packages/dmn-editor/src/diagram/nodes/Nodes.tsx @@ -1151,7 +1151,7 @@ export const GroupNode = React.memo( strokeColor={shapeStyle.strokeColor} /> - +
{ nodes, edges, }) => { - test.skip(true, "https://github.com/apache/incubator-kie-issues/issues/982"); test.info().annotations.push({ type: TestAnnotations.REGRESSION, description: "https://github.com/apache/incubator-kie-issues/issues/982", }); - await palette.dragNewNode({ type: NodeType.GROUP, targetPosition: { x: 300, y: 300 } }); + await palette.dragNewNode({ type: NodeType.GROUP, targetPosition: { x: 400, y: 400 } }); await nodes.dragNewConnectedEdge({ type: EdgeType.ASSOCIATION, from: DefaultNodeName.TEXT_ANNOTATION, to: DefaultNodeName.GROUP, + position: NodePosition.TOP, }); expect(await edges.get({ from: DefaultNodeName.TEXT_ANNOTATION, to: DefaultNodeName.GROUP })).toBeAttached();