mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
feat(editor): Improve canvas node insertion position (#14289)
This commit is contained in:
@@ -2990,13 +2990,13 @@ describe('useCanvasOperations', () => {
|
||||
});
|
||||
|
||||
expect(workflowsStore.setConnections).toHaveBeenCalledWith(workflow.connections);
|
||||
expect(workflowsStore.addNode).toHaveBeenCalledWith({
|
||||
expect(workflowsStore.addNode).toHaveBeenNthCalledWith(1, {
|
||||
...nodeA,
|
||||
credentials: {},
|
||||
disabled: false,
|
||||
});
|
||||
expect(workflowsStore.setNodePristine).toHaveBeenCalledWith(nodeA.name, true);
|
||||
expect(workflowsStore.addNode).toHaveBeenCalledWith({
|
||||
expect(workflowsStore.addNode).toHaveBeenNthCalledWith(2, {
|
||||
...nodeB,
|
||||
credentials: {},
|
||||
disabled: false,
|
||||
|
||||
Reference in New Issue
Block a user