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