test(editor): Add canvas actions E2E tests (#6723) (#6790)

* 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

(cherry picked from commit 052d82b220)

* test: fix drag positioning
This commit is contained in:
Csaba Tuncsik
2023-07-31 12:32:08 +02:00
committed by GitHub
parent 749468e4fa
commit 3d6f5a24af
5 changed files with 65 additions and 10 deletions

View File

@@ -9,6 +9,7 @@
:title="displayName"
:show-action-arrow="showActionArrow"
:is-trigger="isTrigger"
:data-test-id="dataTestId"
>
<template #icon>
<node-icon :nodeType="nodeType" />
@@ -77,6 +78,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;