diff --git a/packages/design-system/src/components/N8nSelect/Select.vue b/packages/design-system/src/components/N8nSelect/Select.vue index 7cb4fafcc9..80a065d429 100644 --- a/packages/design-system/src/components/N8nSelect/Select.vue +++ b/packages/design-system/src/components/N8nSelect/Select.vue @@ -31,6 +31,10 @@ const props = defineProps({ multiple: { type: Boolean, }, + multipleLimit: { + type: Number, + default: 0, + }, filterMethod: { type: Function, }, @@ -120,6 +124,7 @@ defineExpose({ Promise; + multipleLimit?: number; } const i18n = useI18n(); @@ -32,6 +33,7 @@ const props = withDefaults(defineProps(), { createEnabled: true, manageEnabled: true, createTag: undefined, + multipleLimit: 0, }); const emit = defineEmits<{ @@ -222,6 +224,7 @@ onClickOutside( :filter-method="filterOptions" filterable multiple + :multiple-limit="props.multipleLimit" :reserve-keyword="false" loading-text="..." :popper-class="dropdownClasses" diff --git a/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationStep.vue b/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationStep.vue index f942613a35..0a4e063daa 100644 --- a/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationStep.vue +++ b/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationStep.vue @@ -2,12 +2,14 @@ import { useI18n } from '@/composables/useI18n'; import { ElCollapseTransition } from 'element-plus'; import { ref, nextTick } from 'vue'; +import N8nTooltip from 'n8n-design-system/components/N8nTooltip'; interface EvaluationStep { title: string; warning?: boolean; small?: boolean; expanded?: boolean; + tooltip?: string; } const props = withDefaults(defineProps(), { @@ -15,6 +17,7 @@ const props = withDefaults(defineProps(), { warning: false, small: false, expanded: true, + tooltip: '', }); const locale = useI18n(); @@ -35,36 +38,41 @@ const toggleExpand = async () => { diff --git a/packages/editor-ui/src/components/TestDefinition/EditDefinition/TagsInput.vue b/packages/editor-ui/src/components/TestDefinition/EditDefinition/TagsInput.vue index a6a8ffc555..9bd4a77ce0 100644 --- a/packages/editor-ui/src/components/TestDefinition/EditDefinition/TagsInput.vue +++ b/packages/editor-ui/src/components/TestDefinition/EditDefinition/TagsInput.vue @@ -89,6 +89,7 @@ function updateTags(tags: string[]) { :event-bus="tagsEventBus" :create-tag="createTag" :manage-enabled="false" + :multiple-limit="1" @update:model-value="updateTags" @esc="cancelEditing('tags')" @blur="saveChanges('tags')" diff --git a/packages/editor-ui/src/plugins/i18n/locales/en.json b/packages/editor-ui/src/plugins/i18n/locales/en.json index 5402a55298..0fd7720695 100644 --- a/packages/editor-ui/src/plugins/i18n/locales/en.json +++ b/packages/editor-ui/src/plugins/i18n/locales/en.json @@ -2759,14 +2759,20 @@ "testDefinition.edit.testSaved": "Test saved", "testDefinition.edit.testSaveFailed": "Failed to save test", "testDefinition.edit.description": "Description", + "testDefinition.edit.description.tooltip": "Add details about what this test evaluates and what success looks like", "testDefinition.edit.tagName": "Tag name", "testDefinition.edit.step.intro": "When running a test", "testDefinition.edit.step.executions": "Fetch past executions | Fetch {count} past execution | Fetch {count} past executions", + "testDefinition.edit.step.executions.tooltip": "Select which tagged executions to use as test cases. Each execution will be replayed to compare performance", "testDefinition.edit.step.nodes": "Mock nodes", "testDefinition.edit.step.mockedNodes": "No nodes mocked | {count} node mocked | {count} nodes mocked", + "testDefinition.edit.step.nodes.tooltip": "Replace specific nodes with test data to isolate what you're testing", "testDefinition.edit.step.reRunExecutions": "Re-run executions", + "testDefinition.edit.step.reRunExecutions.tooltip": "Each test case will be re-run using the current workflow version", "testDefinition.edit.step.compareExecutions": "Compare each past and new execution", + "testDefinition.edit.step.compareExecutions.tooltip": "Select which workflow to use for running the comparison tests", "testDefinition.edit.step.metrics": "Summarise metrics", + "testDefinition.edit.step.metrics.tooltip": "Define which output fields to track and compare between test runs", "testDefinition.edit.step.collapse": "Collapse", "testDefinition.edit.step.expand": "Expand", "testDefinition.list.testDeleted": "Test deleted", diff --git a/packages/editor-ui/src/views/TestDefinition/TestDefinitionEditView.vue b/packages/editor-ui/src/views/TestDefinition/TestDefinitionEditView.vue index 583630541f..710dbd249e 100644 --- a/packages/editor-ui/src/views/TestDefinition/TestDefinitionEditView.vue +++ b/packages/editor-ui/src/views/TestDefinition/TestDefinitionEditView.vue @@ -1,5 +1,5 @@