mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(editor): Open NDV when a node is added to canvas v2 (no-changelog) (#10114)
This commit is contained in:
@@ -167,6 +167,20 @@ describe('useCanvasOperations', () => {
|
||||
});
|
||||
expect(result.credentials).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should open NDV when specified', async () => {
|
||||
nodeTypesStore.setNodeTypes([mockNodeTypeDescription({ name: 'type' })]);
|
||||
|
||||
await canvasOperations.addNode(
|
||||
{
|
||||
type: 'type',
|
||||
name: 'Test Name',
|
||||
},
|
||||
{ openNDV: true },
|
||||
);
|
||||
|
||||
expect(ndvStore.activeNodeName).toBe('Test Name');
|
||||
});
|
||||
});
|
||||
|
||||
describe('updateNodePosition', () => {
|
||||
|
||||
Reference in New Issue
Block a user