feat(editor): Open NDV when a node is added to canvas v2 (no-changelog) (#10114)

This commit is contained in:
Elias Meire
2024-07-19 14:29:11 +02:00
committed by GitHub
parent 4559e3ae18
commit 062633ec9b
2 changed files with 21 additions and 1 deletions

View File

@@ -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', () => {