4teamwork / cypress-drag-drop

A cypress child command for drag'n'drop support.
GNU General Public License v3.0
167 stars 45 forks source link

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

Open mohamadnoor991 opened 10 months ago

mohamadnoor991 commented 10 months ago

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 commented 7 months ago

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