-
Hi, However, we are unfortunately not able to cover a large section of our project, as we can not trigger mouse events on the pixi canvas element to simulate mousedown/mousemove/mouseup/... I found this old issue discussing automation testing, but no solution. I assume it is not possible, but still hope that someone can proof me wrong :-) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Seems that I have found a solution for it. Using the following plugin worked. https://github.com/dmtrKovalenko/cypress-real-events const dragFromAtoB = (startX, startY, endX, endY) => {
cy.get('body')
.realMouseMove(startX, startY)
.realMouseDown({ x: startX, y: startY })
.realMouseMove(endX, endY)
.realMouseUp({ x: endX, y: endY });
cy.wait(1000);
}; |
Beta Was this translation helpful? Give feedback.
Seems that I have found a solution for it. Using the following plugin worked. https://github.com/dmtrKovalenko/cypress-real-events
I still had to fiddle a bit with the timings, but this is how a drag action looked like: