mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Nodes in disabled state appear in the logs (no-changelog) (#15054)
This commit is contained in:
@@ -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, () => {
|
||||
|
||||
Reference in New Issue
Block a user