Skip to content

Commit

Permalink
✨ (handleRenderComponent/index.tsx): add data-testid attribute to han…
Browse files Browse the repository at this point in the history
…dle element for improved testing and accessibility
  • Loading branch information
Cristhianzl committed Dec 16, 2024
1 parent 53a675e commit 5d41fe5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ const HandleRenderComponent = memo(function HandleRenderComponent({
onMouseDown={handleMouseDown}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
data-testid={`handle-${testIdComplement}-${title.toLowerCase()}-${
!showNode ? (left ? "target" : "source") : left ? "left" : "right"
}`}
>
<HandleContent
isNullHandle={isNullHandle ?? false}
Expand Down

0 comments on commit 5d41fe5

Please sign in to comment.