ljmotta commented on code in PR #2462:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2462#discussion_r1684514245


##########
packages/dmn-editor/tests-e2e/__fixtures__/nodes.ts:
##########
@@ -163,15 +163,15 @@ export class Nodes {
     await this.page.mouse.up();
   }
 
-  public async select(args: { name: string; position?: NodePosition }) {
+  public async select(args: { name: string; position?: NodePosition; 
dblClick?: boolean }) {
     const node = this.get({ name: args.name });
 
     const position =
       args.position !== undefined
         ? await this.getPositionalNodeHandleCoordinates({ node, position: 
args.position })
         : undefined;
 
-    await node.click({ position });
+    args.dblClick ? await node.dblclick({ position }) : await node.click({ 
position });

Review Comment:
   Taking a better look at the current fixtures, I could find a `selectLabel` 
on the `nodes` fixture which selects the node label by using the `dbclick`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to