fix(editor): Nodes in disabled state appear in the logs (no-changelog) (#15054)

This commit is contained in:
Suguru Inoue
2025-05-02 13:24:23 +02:00
committed by GitHub
parent 20834abb56
commit a4290dcb78
5 changed files with 43 additions and 5 deletions

View File

@@ -609,6 +609,19 @@ describe(createLogEntries, () => {
}),
]);
});
it('should not include runs for disabled nodes', () => {
const workflow = createTestWorkflowObject({
nodes: [createTestNode({ name: 'A' }), createTestNode({ name: 'B', disabled: true })],
connections: {
A: { main: [[{ node: 'B', type: NodeConnectionTypes.Main, index: 0 }]] },
},
});
expect(
createLogEntries(workflow, { A: [createTestTaskData()], B: [createTestTaskData()] }),
).toEqual([expect.objectContaining({ node: expect.objectContaining({ name: 'A' }) })]);
});
});
describe(deepToRaw, () => {