re-resizable
re-resizable copied to clipboard
Not able to work in Cypress e2e test
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.
But Resizable relies strictly on MouseEvent type:
Expected behavior
Resizable should work in Cypress e2e test
Actual behavior
Resizable not work in Cypress e2e test
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 do you know if this issue was already fixed? we run into the same problem
If anyone is having the problem, the solution is to use eventConstructor
option:
cy.get("#thing").trigger("mousedown", x, y, {eventConstructor: 'MouseEvent'});