mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Set workflow name when importing (no-changelog) (#19410)
This commit is contained in:
@@ -62,8 +62,8 @@ describe('Sharing', { disableAutoLogin: true }, () => {
|
||||
|
||||
cy.visit(workflowsPage.url);
|
||||
workflowsPage.getters.createWorkflowButton().click();
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json', 'Workflow W2');
|
||||
workflowPage.actions.saveWorkflowOnButtonClick();
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json');
|
||||
workflowPage.actions.setWorkflowName('Workflow W2');
|
||||
cy.url().then((url) => {
|
||||
workflowW2Url = url;
|
||||
});
|
||||
|
||||
@@ -466,7 +466,7 @@ describe('Execution', () => {
|
||||
});
|
||||
|
||||
it('should send proper payload for node rerun', () => {
|
||||
cy.createFixtureWorkflow('Multiple_trigger_node_rerun.json', 'Multiple trigger node rerun');
|
||||
cy.createFixtureWorkflow('Multiple_trigger_node_rerun.json');
|
||||
|
||||
workflowPage.getters.zoomToFitButton().click();
|
||||
workflowPage.getters.executeWorkflowButton().click();
|
||||
|
||||
@@ -14,7 +14,7 @@ describe('Workflow Executions', () => {
|
||||
describe('when workflow is saved', () => {
|
||||
beforeEach(() => {
|
||||
workflowPage.actions.visit();
|
||||
cy.createFixtureWorkflow('Test_workflow_4_executions_view.json', 'My test workflow');
|
||||
cy.createFixtureWorkflow('Test_workflow_4_executions_view.json');
|
||||
});
|
||||
|
||||
it('should render executions tab correctly', () => {
|
||||
|
||||
@@ -43,7 +43,7 @@ describe('Editor zoom should work after route changes', () => {
|
||||
cy.enableFeature('workflowHistory');
|
||||
cy.signinAsOwner();
|
||||
workflowPage.actions.visit();
|
||||
cy.createFixtureWorkflow('Lots_of_nodes.json', 'Lots of nodes');
|
||||
cy.createFixtureWorkflow('Lots_of_nodes.json');
|
||||
workflowPage.actions.saveWorkflowOnButtonClick();
|
||||
});
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ const ndv = new NDV();
|
||||
describe('Node IO Filter', () => {
|
||||
beforeEach(() => {
|
||||
workflowPage.actions.visit();
|
||||
cy.createFixtureWorkflow('Node_IO_filter.json', 'Node IO filter');
|
||||
cy.createFixtureWorkflow('Node_IO_filter.json');
|
||||
workflowPage.actions.saveWorkflowOnButtonClick();
|
||||
workflowPage.actions.executeWorkflow();
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('Workflows', () => {
|
||||
getNewWorkflowCardButton().should('be.visible');
|
||||
getNewWorkflowCardButton().click();
|
||||
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json', 'Empty State Card Workflow');
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json');
|
||||
|
||||
addNodeToCanvas(EDIT_FIELDS_SET_NODE_NAME);
|
||||
|
||||
@@ -43,7 +43,7 @@ describe('Workflows', () => {
|
||||
it('should correct route after cancelling saveChangesModal', () => {
|
||||
getCreateWorkflowButton().click();
|
||||
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json', 'Empty State Card Workflow');
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json');
|
||||
addNodeToCanvas(EDIT_FIELDS_SET_NODE_NAME, true, true);
|
||||
|
||||
// Here we go back via browser rather than the home button
|
||||
@@ -63,7 +63,7 @@ describe('Workflows', () => {
|
||||
getCreateWorkflowButton().click();
|
||||
saveWorkflowOnButtonClick();
|
||||
cy.url().then((startUrl) => {
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json', 'Empty State Card Workflow');
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json');
|
||||
cy.url().should('equal', startUrl);
|
||||
|
||||
addNodeToCanvas(EDIT_FIELDS_SET_NODE_NAME, true, true);
|
||||
@@ -80,7 +80,7 @@ describe('Workflows', () => {
|
||||
it('should open ndv via URL', () => {
|
||||
getCreateWorkflowButton().click();
|
||||
saveWorkflowOnButtonClick();
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json', 'Empty State Card Workflow');
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json');
|
||||
|
||||
addNodeToCanvas(EDIT_FIELDS_SET_NODE_NAME, true, true);
|
||||
cy.url().then((ndvUrl) => {
|
||||
@@ -98,7 +98,7 @@ describe('Workflows', () => {
|
||||
it('should open show warning and drop nodeId from URL if it contained an unknown nodeId', () => {
|
||||
getCreateWorkflowButton().click();
|
||||
saveWorkflowOnButtonClick();
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json', 'Empty State Card Workflow');
|
||||
cy.createFixtureWorkflow('Test_workflow_1.json');
|
||||
|
||||
addNodeToCanvas(EDIT_FIELDS_SET_NODE_NAME, true, true);
|
||||
cy.url().then((ndvUrl) => {
|
||||
|
||||
@@ -11,8 +11,8 @@ describe('Workflow Selector Parameter', () => {
|
||||
cy.signinAsOwner();
|
||||
['Get_Weather', 'Search_DB'].forEach((workflowName) => {
|
||||
workflowPage.actions.visit();
|
||||
cy.createFixtureWorkflow(`Test_Subworkflow_${workflowName}.json`, workflowName);
|
||||
workflowPage.actions.saveWorkflowOnButtonClick();
|
||||
cy.createFixtureWorkflow(`Test_Subworkflow_${workflowName}.json`);
|
||||
workflowPage.actions.setWorkflowName(workflowName);
|
||||
});
|
||||
workflowPage.actions.visit();
|
||||
workflowPage.actions.addInitialNodeToCanvas(EXECUTE_WORKFLOW_NODE_NAME, {
|
||||
|
||||
Reference in New Issue
Block a user