Commit 976586f authored Jan 7, 2025 · 6 / 6 · Verified
1 parent 04e2928 commit 976586f Copy full SHA for 976586f
File tree 2 files changed +12
-4
lines changed
packages/editor-ui/src/components/canvas/elements/nodes
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ export function getNodes() {
46
46
}
47
47
48
48
export function getNodeByName ( name : string ) {
49
- return cy . getByTestId ( 'canvas-node' ) . filter ( `[data-name="${ name } "]` ) . eq ( 0 ) ;
49
+ return cy . ifCanvasVersion (
50
+ ( ) => cy . getByTestId ( 'canvas-node' ) . filter ( `[data-name="${ name } "]` ) . eq ( 0 ) ,
51
+ ( ) => cy . getByTestId ( 'canvas-node' ) . filter ( `[data-node-name="${ name } "]` ) . eq ( 0 ) ,
52
+ ) ;
50
53
}
51
54
52
55
export function disableNode ( name : string ) {
Original file line number Diff line number Diff line change @@ -311,7 +311,12 @@ onBeforeUnmount(() => {
311
311
</script >
312
312
313
313
<template >
314
- <div :class =" classes" data-test-id =" canvas-node" :data-node-type =" data.type" >
314
+ <div
315
+ :class =" classes"
316
+ data-test-id =" canvas-node"
317
+ :data-node-name =" data.name"
318
+ :data-node-type =" data.type"
319
+ >
315
320
<template
316
321
v-for =" source in mappedOutputs "
317
322
:key =" ` ${source .handleId }(${source .index + 1 }/${mappedOutputs .length }) ` "
@@ -321,7 +326,7 @@ onBeforeUnmount(() => {
321
326
:mode =" CanvasConnectionMode.Output"
322
327
:is-read-only =" readOnly"
323
328
:is-valid-connection =" isValidConnection"
324
- :data-node-name =" label "
329
+ :data-node-name =" data.name "
325
330
data-test-id =" canvas-node-output-handle"
326
331
:data-handle-index =" source.index"
327
332
@add =" onAdd"
@@ -339,7 +344,7 @@ onBeforeUnmount(() => {
339
344
:is-valid-connection =" isValidConnection"
340
345
data-test-id =" canvas-node-input-handle"
341
346
:data-handle-index =" target.index"
342
- :data-node-name =" label "
347
+ :data-node-name =" data.name "
343
348
@add =" onAdd"
344
349
/>
345
350
</template >
You can’t perform that action at this time.
0 commit comments