test(editor): Add canvas actions E2E tests (#6723)
* test(editor): Add canvas actions E2E tests * test(editor): Open category items in node creator when category dropped on canvas * test(editor): Have new position counted only once in drag * test(editor): rename test
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
:title="displayName"
|
||||
:show-action-arrow="showActionArrow"
|
||||
:is-trigger="isTrigger"
|
||||
:data-test-id="dataTestId"
|
||||
>
|
||||
<template #icon>
|
||||
<node-icon :nodeType="nodeType" />
|
||||
@@ -74,6 +75,9 @@ const description = computed<string>(() => {
|
||||
}) as string;
|
||||
});
|
||||
const showActionArrow = computed(() => hasActions.value);
|
||||
const dataTestId = computed(() =>
|
||||
hasActions.value ? 'node-creator-action-item' : 'node-creator-node-item',
|
||||
);
|
||||
|
||||
const hasActions = computed(() => {
|
||||
return nodeActions.value.length > 1;
|
||||
|
||||
Reference in New Issue
Block a user