Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to work in Cypress e2e test #439

Open
picodoth opened this issue May 24, 2019 · 3 comments
Open

Not able to work in Cypress e2e test #439

picodoth opened this issue May 24, 2019 · 3 comments

Comments

@picodoth
Copy link

picodoth commented May 24, 2019

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
Copy link
Author

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.

@oleg-koval
Copy link

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

@mkedo
Copy link

mkedo commented Feb 17, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants