chore(node-edges): add data-testid

This commit is contained in:
moklick
2022-09-14 15:32:27 +02:00
parent 23d1dd027a
commit 4e9cc377b1
2 changed files with 2 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
targetHandleId={targetHandleId}
markerStart={markerStartUrl}
markerEnd={markerEndUrl}
data-testid={`rf__edge-${id}`}
/>
{handleEdgeUpdate && (
<g

View File

@@ -135,6 +135,7 @@ export default (NodeComponent: ComponentType<NodeProps>) => {
onContextMenu={onContextMenuHandler}
onClick={onSelectNodeHandler}
onDoubleClick={onDoubleClickHandler}
data-testid={`rf__node-${id}`}
data-id={id}
>
<Provider value={id}>