From 2e2bd587d09c90b71ed6e544758018a3ec8dc1c0 Mon Sep 17 00:00:00 2001 From: JGerla Date: Sat, 25 Oct 2025 15:27:50 +0200 Subject: [PATCH] test: Added test for onReconnectStart ref: N25B-114 --- .../visualProgrammingUI/VisProgStores.test.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/pages/visProgPage/visualProgrammingUI/VisProgStores.test.tsx b/test/pages/visProgPage/visualProgrammingUI/VisProgStores.test.tsx index be59640..de71391 100644 --- a/test/pages/visProgPage/visualProgrammingUI/VisProgStores.test.tsx +++ b/test/pages/visProgPage/visualProgrammingUI/VisProgStores.test.tsx @@ -69,6 +69,17 @@ describe('FlowStore Functionality', () => { }); }); describe('ReactFlow onReconnectStart', () => { + test('does correct setup for edge reconnection sequences', () => { + const {onReconnectStart} = useFlowStore.getState(); + + act(() => { + useFlowStore.setState({edgeReconnectSuccessful: true}); + onReconnectStart(); + }); + + const updatedState = useFlowStore.getState().edgeReconnectSuccessful; + expect(updatedState).toEqual(false); + }); }); describe('ReactFlow onReconnectEnd', () => { });