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

Unable to test interact js with cypress end-to-end testing library #856

Closed
tktaofik opened this issue Sep 12, 2020 · 5 comments
Closed

Unable to test interact js with cypress end-to-end testing library #856

tktaofik opened this issue Sep 12, 2020 · 5 comments
Labels

Comments

@tktaofik
Copy link

tktaofik commented Sep 12, 2020

Expected behavior

I should be able to trigger native events with cypress testing-dom__drag-drop

Actual behavior

interact js does not pick up any trigger events from cypress

System configuration

interact.js version: 1.9.18
Browser name and version: Chrome
Operating System: macOS

@tktaofik tktaofik changed the title Unable to test interact js draggable with cypress Unable to test interact js with cypress end-to-end testing library Sep 12, 2020
@taye
Copy link
Owner

taye commented Sep 18, 2020

It's likely that because the cypress browser supports PointerEvents, interact is only listening to those and ignore the mouse events. Can you try triggering pointerdown, pointermove, etc.?

@tktaofik
Copy link
Author

tktaofik commented Sep 18, 2020

I tried pointerdown, pointermove but it didn't work with cypress
I want to mention i am using interact(".node").draggable and the following is the event type i logged when i drag my element. I also tried dragmove and dragstart and it didn't work with cypress

Screen Shot 2020-09-18 at 6 59 19 PM

@stale stale bot added the stale label Oct 3, 2020
@taye
Copy link
Owner

taye commented Oct 6, 2020

Could you make a repo with just enough set up to reproduce this?

@stale stale bot removed the stale label Oct 6, 2020
Repository owner deleted a comment from stale bot Oct 6, 2020
@tktaofik
Copy link
Author

tktaofik commented Oct 8, 2020

Could you make a repo with just enough set up to reproduce this?

I will set one up over soon. Thanks

@stale
Copy link

stale bot commented Oct 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

2 participants