Skip to content

Commit

Permalink
kie-issues#982: On the DMN Editor it should be possible Associate a T…
Browse files Browse the repository at this point in the history
…ext Annotation node to a Group node (apache#2528)
  • Loading branch information
jomarko authored Aug 9, 2024
1 parent 6f5c8e8 commit 6f9dca5
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const graphStructure: Map<NodeType, Map<EdgeType, Set<NodeType>>> = new M
NODE_TYPES.decision,
NODE_TYPES.bkm,
NODE_TYPES.decisionService,
NODE_TYPES.group,
NODE_TYPES.knowledgeSource,
]),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/dmn-editor/src/diagram/nodes/Nodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ export const GroupNode = React.memo(
strokeColor={shapeStyle.strokeColor}
/>
</svg>

<PositionalNodeHandles isTargeted={isTargeted && isValidConnectionTarget} nodeId={id} />
<div
className={`kie-dmn-editor--node kie-dmn-editor--group-node ${className}`}
tabIndex={-1}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,16 @@ test.describe("Add edge - Association", () => {
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();
Expand Down

0 comments on commit 6f9dca5

Please sign in to comment.