mharris717 / ember-drag-drop

Drag and Drop Addon for Ember CLI
MIT License
204 stars 141 forks source link

In Acceptance tests, drag-drop helper fails to trigger the dragend event #169

Closed marc22alain closed 4 years ago

marc22alain commented 4 years ago

In the context of Acceptance test, the drag-drop helper fails to trigger the dragend event on the correct element. The event should be called on the dragged element, but due to timing issues, it is called on the drop target element instead. The fix is to pass the dragged element to the drop() helper function instead of its css selector, and use that element reference when calling triggerEvent. In our project, this change does not break Integration tests.