feat: removed usage of structuredClone inside the editorWarningSystem
ref: N25B-450
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
import {act} from '@testing-library/react';
|
||||
import type {Connection, Edge, Node} from "@xyflow/react";
|
||||
import {
|
||||
type Connection,
|
||||
type Edge,
|
||||
type Node,
|
||||
useReactFlow
|
||||
} from "@xyflow/react";
|
||||
import type {HandleRule, RuleResult} from "../../../../src/pages/VisProgPage/visualProgrammingUI/HandleRuleLogic.ts";
|
||||
import { NodeDisconnections } from "../../../../src/pages/VisProgPage/visualProgrammingUI/NodeRegistry.ts";
|
||||
import type {PhaseNodeData} from "../../../../src/pages/VisProgPage/visualProgrammingUI/nodes/PhaseNode.tsx";
|
||||
@@ -397,9 +402,9 @@ describe('FlowStore Functionality', () => {
|
||||
target: 'B'
|
||||
}]
|
||||
});
|
||||
|
||||
const {deleteElements} = useReactFlow();
|
||||
act(()=> {
|
||||
deleteNode(nodeId);
|
||||
deleteNode(nodeId, deleteElements);
|
||||
});
|
||||
|
||||
const updatedState = useFlowStore.getState();
|
||||
|
||||
Reference in New Issue
Block a user