File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/frontend/src/pages/FlowPage/components/nodeToolbarComponent Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,22 @@ export const ToolbarButton = memo(
13
13
label,
14
14
shortcut,
15
15
className,
16
+ dataTestId,
16
17
} : {
17
18
onClick : ( ) => void ;
18
19
icon : string ;
19
20
label ?: string ;
20
21
shortcut ?: any ;
21
22
className ?: string ;
23
+ dataTestId ?: string ;
22
24
} ) => (
23
25
< ShadTooltip content = { < ShortcutDisplay { ...shortcut } /> } side = "top" >
24
26
< Button
25
27
className = { cn ( "node-toolbar-buttons" , className ) }
26
28
variant = "ghost"
27
29
onClick = { onClick }
28
30
size = "node-toolbar"
31
+ data-testid = { dataTestId }
29
32
>
30
33
< ForwardedIconComponent name = { icon } className = "h-4 w-4" />
31
34
{ label && < span className = "text-[13px] font-medium" > { label } </ span > }
Original file line number Diff line number Diff line change @@ -444,6 +444,7 @@ const NodeToolbarComponent = memo(
444
444
shortcut = { shortcuts . find ( ( s ) =>
445
445
s . name . toLowerCase ( ) . startsWith ( "code" ) ,
446
446
) }
447
+ dataTestId = "code-button-modal"
447
448
/>
448
449
) }
449
450
{ nodeLength > 0 && (
@@ -454,6 +455,7 @@ const NodeToolbarComponent = memo(
454
455
shortcut = { shortcuts . find ( ( s ) =>
455
456
s . name . toLowerCase ( ) . startsWith ( "advanced" ) ,
456
457
) }
458
+ dataTestId = "edit-button-modal"
457
459
/>
458
460
) }
459
461
{ ! hasToolMode && (
@@ -471,6 +473,7 @@ const NodeToolbarComponent = memo(
471
473
s . name . toLowerCase ( ) . startsWith ( "freeze path" ) ,
472
474
) }
473
475
className = { cn ( "node-toolbar-buttons" , frozen && "text-blue-500" ) }
476
+ dataTestId = "freeze-path-button"
474
477
/>
475
478
) }
476
479
{ hasToolMode && (
You can’t perform that action at this time.
0 commit comments