re-resizable icon indicating copy to clipboard operation
re-resizable copied to clipboard

Not able to work in Cypress e2e test

Open picodoth opened this issue 5 years ago • 3 comments

Overview of the problem

Resizable does not work in Cypress e2e test. While using e2e test framework like cypress, the event object may not be MouseEvent but rather a generic Event.

image

But Resizable relies strictly on MouseEvent type: image

Expected behavior

Resizable should work in Cypress e2e test

Actual behavior

Resizable not work in Cypress e2e test

picodoth avatar May 24 '19 10:05 picodoth

hey, @bokuweb, I made a pr trying to fix the issue. Not sure this is the right thing to do. Will appreciate if you have any suggestion to make Resizable to work in a Cypress e2e test env.

picodoth avatar May 24 '19 10:05 picodoth

@picodoth do you know if this issue was already fixed? we run into the same problem

oleg-koval avatar Dec 09 '20 10:12 oleg-koval

If anyone is having the problem, the solution is to use eventConstructor option:

cy.get("#thing").trigger("mousedown", x, y, {eventConstructor: 'MouseEvent'});

mkedo avatar Feb 17 '23 13:02 mkedo