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:
Csaba Tuncsik
2023-07-24 15:38:37 +02:00
committed by GitHub
parent 540d32dee4
commit 052d82b220
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" />
@@ -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;