Merge pull request #4844 from xyflow/chore/custom-data-testid
Chore/custom data testid
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@xyflow/react': patch
|
||||
---
|
||||
|
||||
Allow custom data-testid for ReactFlow component
|
||||
@@ -153,11 +153,11 @@ function ReactFlow<NodeType extends Node = Node, EdgeType extends Edge = Edge>(
|
||||
|
||||
return (
|
||||
<div
|
||||
data-testid="rf__wrapper"
|
||||
{...rest}
|
||||
style={{ ...style, ...wrapperStyle }}
|
||||
ref={ref}
|
||||
className={cc(['react-flow', className, colorModeClassName])}
|
||||
data-testid="rf__wrapper"
|
||||
id={id}
|
||||
>
|
||||
<Wrapper
|
||||
|
||||
Reference in New Issue
Block a user