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

The drag action doesnt work without move the mouse and there is no .then() for drag #146

Open
mohamadnoor991 opened this issue Dec 12, 2023 · 1 comment

Comments

@mohamadnoor991
Copy link

I am using this plugin in my Cypress test for the first time, and I wasted time until I discovered these two problems.
cy,dray('.deoped-element').get('#dropping-place");
This code will not work if we don't hover over the zone of the drop-by mouse; either way, it will fail.
Also, in the documentation, there is partly shows that we can use .then with drag to test the drag action, but when I tried that, it showed me an error that '.then()" is not define for 'drag()'

Screenshot 2023-12-12 153250

I hope to solve this problem so quickly to help us to use it without problems.

@ajdintbk
Copy link

ajdintbk commented Mar 4, 2024

I was having this issue and renaming that test file from .ts to .js fixed this issue.

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

2 participants