im using cypress automation testing where i have a use case, i drop the node from toolbar to the gojs canvas.
I need to check a test case wether the drop is being made to right coordinate.
In test case i mention, the pageX and pageY, to drop the node, but i need to convert that to pageX and PageY to canvas coordinates and check, How do we do it?
Here x and y are the mouse event pageX and PageY in canvas. (following is cypress code)