feat(editor): Update copy: Execute --> Test (#8137)

## Summary

Title self explanatory


## Related tickets and issues
https://linear.app/n8n/issue/ADO-129/update-copy-execute-test

## Review / Merge checklist
- [x] PR title and summary are descriptive. **Remember, the title
automatically goes into the changelog. Use `(no-changelog)` otherwise.**
([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md))
This commit is contained in:
Ricardo Espinoza 2024-01-05 10:23:51 -05:00 committed by GitHub
parent 2d6e406e21
commit df5d07bcb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 64 additions and 72 deletions

View file

@ -35,7 +35,7 @@ export const INSTANCE_MEMBERS = [
];
export const MANUAL_TRIGGER_NODE_NAME = 'Manual Trigger';
export const MANUAL_TRIGGER_NODE_DISPLAY_NAME = 'When clicking "Execute Workflow"';
export const MANUAL_TRIGGER_NODE_DISPLAY_NAME = 'When clicking "Test Workflow"';
export const MANUAL_CHAT_TRIGGER_NODE_NAME = 'Manual Chat Trigger';
export const SCHEDULE_TRIGGER_NODE_NAME = 'Schedule Trigger';
export const CODE_NODE_NAME = 'Code';

View file

@ -169,7 +169,7 @@ describe('Data pinning', () => {
});
function setExpressionOnStringValueInSet(expression: string) {
cy.get('button').contains('Execute node').click();
cy.get('button').contains('Test step').click();
cy.get('.fixed-collection-parameter > :nth-child(2) > .button > span').click();
ndv.getters.nthParam(4).contains('Expression').invoke('show').click();

View file

@ -308,7 +308,7 @@ describe('Node Creator', () => {
nodeCreatorFeature.getters.getCategoryItem('Actions').click();
nodeCreatorFeature.getters.getCreatorItem('Create a credential').click();
NDVModal.actions.close();
WorkflowPage.actions.deleteNode('When clicking "Execute Workflow"');
WorkflowPage.actions.deleteNode('When clicking "Test Workflow"');
WorkflowPage.getters.canvasNodePlusEndpointByName('n8n').click();
nodeCreatorFeature.getters.searchBar().find('input').clear().type('n8n');
nodeCreatorFeature.getters.getCreatorItem('n8n').click();

View file

@ -577,7 +577,7 @@ describe('NDV', () => {
ndv.getters.backToCanvas().click();
workflowPage.actions.executeWorkflow();
// Manual tigger node should show success indicator
workflowPage.actions.openNode('When clicking "Execute Workflow"');
workflowPage.actions.openNode('When clicking "Test Workflow"');
ndv.getters.nodeRunSuccessIndicator().should('exist');
// Code node should show error
ndv.getters.backToCanvas().click();

View file

@ -4,7 +4,7 @@
{
"parameters": {},
"id": "d0eda550-2526-42a1-aa19-dee411c8acf9",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -91,7 +91,7 @@
],
"pinData": {},
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -4,7 +4,7 @@
{
"parameters": {},
"id": "369fe424-dd3b-4399-9de3-50bd4ce1f75b",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -570,7 +570,7 @@
],
"pinData": {},
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -4,7 +4,7 @@
{
"parameters": {},
"id": "46770685-44d1-4aad-9107-1d790cf26b50",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -74,7 +74,7 @@
}
],
"pinData": {
"When clicking \"Execute Workflow\"": [
"When clicking \"Test Workflow\"": [
{
"json": {
"id": "654cfa05fa51480dcb543b1a",
@ -599,7 +599,7 @@
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -42,7 +42,7 @@
{
"parameters": {},
"id": "551313bb-1e01-4133-9956-e6f09968f2ce",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -92,7 +92,7 @@
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{
@ -191,7 +191,7 @@
{
"parameters": {},
"id": "551313bb-1e01-4133-9956-e6f09968f2ce",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -241,7 +241,7 @@
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{
@ -374,7 +374,7 @@
{
"parameters": {},
"id": "551313bb-1e01-4133-9956-e6f09968f2ce",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -424,7 +424,7 @@
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{
@ -524,7 +524,7 @@
{
"parameters": {},
"id": "551313bb-1e01-4133-9956-e6f09968f2ce",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -574,7 +574,7 @@
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -40,7 +40,7 @@
{
"parameters": {},
"id": "ef63cdc5-50bc-4525-9873-7e7f7589a60e",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -199,7 +199,7 @@
]
]
},
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -4,7 +4,7 @@
{
"parameters": {},
"id": "f332a7d1-31b4-4e78-b31e-9e8db945bf3f",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -99,7 +99,7 @@
],
"pinData": {},
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -4,7 +4,7 @@
{
"parameters": {},
"id": "aadaed66-84ed-4cf8-bf21-082e9a65db76",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [

View file

@ -47,7 +47,7 @@
{
"parameters": {},
"id": "58512a93-dabf-4584-817f-27c608c1bdd5",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -69,7 +69,7 @@
]
]
},
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -47,7 +47,7 @@
{
"parameters": {},
"id": "3dc7cf26-ff25-4437-b9fd-0e8b127ebec9",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -552,7 +552,7 @@
]
]
},
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -4,7 +4,7 @@
{
"parameters": {},
"id": "0a60e507-7f34-41c0-a0f9-697d852033b6",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -93,7 +93,7 @@
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{
@ -148,4 +148,4 @@
"instanceId": "021d3c82ba2d3bc090cbf4fc81c9312668bcc34297e022bb3438c5c88a43a5ff"
},
"tags": []
}
}

View file

@ -6,7 +6,7 @@
{
"parameters": {},
"id": "8108d313-8b03-4aa4-963d-cd1c0fe8f85c",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -37,7 +37,7 @@
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{
@ -50,4 +50,4 @@
}
},
"pinData": {}
}
}

View file

@ -6,7 +6,7 @@
{
"parameters": {},
"id": "bcb6abdf-d34b-4ea7-a8ed-58155b708c43",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -90,7 +90,7 @@
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -27,7 +27,7 @@
{
"parameters": {},
"id": "acdd1bdc-c642-4ea6-ad67-f4201b640cfa",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -37,7 +37,7 @@
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -6,7 +6,7 @@
{
"parameters": {},
"id": "40720511-19b6-4421-bdb0-3fb6efef4bc5",
"name": "When clicking \"Execute Workflow\"",
"name": "When clicking \"Test Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
@ -64,7 +64,7 @@
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"When clicking \"Test Workflow\"": {
"main": [
[
{

View file

@ -112,7 +112,7 @@
text
icon="play"
:disabled="workflowRunning || isConfigNode"
:title="$locale.baseText('node.executeNode')"
:title="$locale.baseText('node.testStep')"
@click="executeNode"
/>
<n8n-icon-button

View file

@ -12,9 +12,10 @@
:label="buttonLabel"
:type="type"
:size="size"
:icon="isFormTriggerNode && 'flask'"
:icon="!isListeningForEvents && 'flask'"
:transparent-background="transparent"
@click="onClick"
:title="!isTriggerNode ? $locale.baseText('ndv.execute.testNode.description') : ''"
/>
</div>
</n8n-tooltip>
@ -197,16 +198,7 @@ export default defineComponent({
return this.$locale.baseText('ndv.execute.fetchEvent');
}
if (
this.isTriggerNode &&
!this.isScheduleTrigger &&
!this.isManualTriggerNode &&
!this.isFormTriggerNode
) {
return this.$locale.baseText('ndv.execute.listenForEvent');
}
return this.$locale.baseText('ndv.execute.executeNode');
return this.$locale.baseText('ndv.execute.testNode');
},
},
methods: {

View file

@ -14,7 +14,7 @@ exports[`useContextMenu > Read-only mode > should return the correct actions whe
{
"disabled": true,
"id": "execute",
"label": "Execute node",
"label": "Test node",
},
{
"disabled": true,
@ -181,7 +181,7 @@ exports[`useContextMenu > should return the correct actions opening the menu fro
{
"disabled": false,
"id": "execute",
"label": "Execute node",
"label": "Test node",
},
{
"disabled": false,
@ -279,7 +279,7 @@ exports[`useContextMenu > should return the correct actions when right clicking
{
"disabled": false,
"id": "execute",
"label": "Execute node",
"label": "Test node",
},
{
"disabled": false,

View file

@ -219,7 +219,7 @@ export const useContextMenu = (onAction: ContextMenuActionCallback = () => {}) =
},
{
id: 'execute',
label: i18n.baseText('contextMenu.execute'),
label: i18n.baseText('contextMenu.test'),
disabled: isReadOnly.value,
},
{

View file

@ -753,11 +753,11 @@
"multipleParameter.moveUp": "Move up",
"ndv.backToCanvas": "Back to canvas",
"ndv.backToCanvas.waitingForTriggerWarning": "Waiting for a Trigger node to execute. Close this view to see the Workflow Canvas.",
"ndv.execute.executeNode": "Execute node",
"ndv.execute.testNode": "Test step",
"ndv.execute.testNode.description": "Runs the current node. Will also run previous nodes if they have not been run yet",
"ndv.execute.executing": "Executing",
"ndv.execute.fetchEvent": "Fetch Test Event",
"ndv.execute.fixPrevious": "Fix previous node first",
"ndv.execute.listenForEvent": "Listen For Event",
"ndv.execute.listenForTestEvent": "Listen For Test Event",
"ndv.execute.testStep": "Test Step",
"ndv.execute.stopListening": "Stop Listening",
@ -803,10 +803,10 @@
"ndv.output.of": " of ",
"ndv.output.pageSize": "Page Size",
"ndv.output.run": "Run",
"ndv.output.runNodeHint": "Execute this node to output data",
"ndv.output.runNodeHint": "Test this node to output data",
"ndv.output.runNodeHintSubNode": "Output will appear here once the parent node is run",
"ndv.output.insertTestData": "insert test data",
"ndv.output.staleDataWarning.regular": "Node parameters have changed.<br>Execute node again to refresh output.",
"ndv.output.staleDataWarning.regular": "Node parameters have changed.<br>Test node again to refresh output.",
"ndv.output.staleDataWarning.pinData": "Node parameter changes will not affect pinned output data.",
"ndv.output.tooMuchData.message": "The node contains {size} MB of data. Displaying it may cause problems. <br /> If you do decide to display it, avoid the JSON view.",
"ndv.output.tooMuchData.showDataAnyway": "Show data anyway",
@ -821,9 +821,9 @@
"ndv.pinData.pin.multipleRuns.title": "Run #{index} was pinned",
"ndv.pinData.pin.multipleRuns.description": "This run will be outputted each time the node is run.",
"ndv.pinData.unpinAndExecute.title": "Unpin output data?",
"ndv.pinData.unpinAndExecute.description": "Executing a node overwrites pinned data.",
"ndv.pinData.unpinAndExecute.description": "Testing a node overwrites pinned data.",
"ndv.pinData.unpinAndExecute.cancel": "Cancel",
"ndv.pinData.unpinAndExecute.confirm": "Unpin and execute",
"ndv.pinData.unpinAndExecute.confirm": "Unpin and test",
"ndv.pinData.beforeClosing.title": "Save output changes before closing?",
"ndv.pinData.beforeClosing.cancel": "Discard",
"ndv.pinData.beforeClosing.confirm": "Save",
@ -838,7 +838,7 @@
"node.activateDeactivateNode": "Activate/Deactivate Node",
"node.changeColor": "Change color",
"node.disabled": "Disabled",
"node.executeNode": "Execute node",
"node.testStep": "Test Step",
"node.deleteNode": "Delete node",
"node.issues": "Issues",
"node.nodeIsExecuting": "Node is executing",
@ -1053,7 +1053,7 @@
"nodeView.redirecting": "Redirecting",
"nodeView.refresh": "Refresh",
"nodeView.resetZoom": "Reset Zoom",
"nodeView.runButtonText.executeWorkflow": "Execute Workflow",
"nodeView.runButtonText.executeWorkflow": "Test Workflow",
"nodeView.runButtonText.executingWorkflow": "Executing Workflow",
"nodeView.runButtonText.waitingForTriggerEvent": "Waiting for Trigger Event",
"nodeView.showError.workflowError": "Workflow execution finished with an error",
@ -1101,7 +1101,7 @@
"contextMenu.deselectAll": "Clear selection",
"contextMenu.duplicate": "Duplicate {subject} | Duplicate {count} {subject}",
"contextMenu.open": "Open node...",
"contextMenu.execute": "Execute node",
"contextMenu.test": "Test node",
"contextMenu.rename": "Rename node",
"contextMenu.copy": "Copy {subject} | Copy {count} {subject}",
"contextMenu.deactivate": "Deactivate {subject} | Deactivate {count} {subject}",
@ -1340,7 +1340,7 @@
"runData.executionStatus.success": "Executed successfully",
"runData.executionStatus.failed": "Execution failed",
"runData.downloadBinaryData": "Download",
"runData.executeNode": "Execute Node",
"runData.executeNode": "Test Node",
"runData.executionTime": "Execution Time",
"runData.fileExtension": "File Extension",
"runData.fileName": "File Name",

View file

@ -126,7 +126,7 @@
:loading="workflowRunning"
:label="runButtonText"
size="large"
icon="play-circle"
icon="flask"
type="primary"
:disabled="isExecutionDisabled"
data-test-id="execute-workflow-button"

View file

@ -31,7 +31,7 @@ export class Cron implements INodeType {
properties: [
{
displayName:
'This workflow will run on the schedule you define here once you <a data-key="activate">activate</a> it.<br><br>For testing, you can also trigger it manually: by going back to the canvas and clicking execute workflow',
'This workflow will run on the schedule you define here once you <a data-key="activate">activate</a> it.<br><br>For testing, you can also trigger it manually: by going back to the canvas and clicking test workflow',
name: 'notice',
type: 'notice',
default: '',

View file

@ -28,7 +28,7 @@ export class Interval implements INodeType {
properties: [
{
displayName:
'This workflow will run on the schedule you define here once you <a data-key="activate">activate</a> it.<br><br>For testing, you can also trigger it manually: by going back to the canvas and clicking execute workflow',
'This workflow will run on the schedule you define here once you <a data-key="activate">activate</a> it.<br><br>For testing, you can also trigger it manually: by going back to the canvas and clicking test workflow',
name: 'notice',
type: 'notice',
default: '',

View file

@ -16,7 +16,7 @@ export class ManualTrigger implements INodeType {
eventTriggerDescription: '',
maxNodes: 1,
defaults: {
name: 'When clicking "Execute Workflow"',
name: 'When clicking "Test Workflow"',
color: '#909298',
},
@ -25,7 +25,7 @@ export class ManualTrigger implements INodeType {
properties: [
{
displayName:
'This node is where a manual workflow execution starts. To make one, go back to the canvas and click execute workflow',
'This node is where a manual workflow execution starts. To make one, go back to the canvas and click test workflow',
name: 'notice',
type: 'notice',
default: '',

View file

@ -33,7 +33,7 @@ export class ScheduleTrigger implements INodeType {
properties: [
{
displayName:
'This workflow will run on the schedule you define here once you <a data-key="activate">activate</a> it.<br><br>For testing, you can also trigger it manually: by going back to the canvas and clicking execute workflow',
'This workflow will run on the schedule you define here once you <a data-key="activate">activate</a> it.<br><br>For testing, you can also trigger it manually: by going back to the canvas and clicking test workflow',
name: 'notice',
type: 'notice',
default: '',