feat(editor): Improve canvas node insertion position (#14289)

This commit is contained in:
Alex Grozav
2025-05-13 19:38:10 +03:00
committed by GitHub
parent 3eb1c1c783
commit 102c67628c
10 changed files with 406 additions and 96 deletions

View File

@@ -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,