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

html5_drag does not fire dragenter #2576

Closed
sfnelson opened this issue Aug 29, 2022 · 0 comments
Closed

html5_drag does not fire dragenter #2576

sfnelson opened this issue Aug 29, 2022 · 0 comments

Comments

@sfnelson
Copy link

sfnelson commented Aug 29, 2022

Meta

Capybara Version:
3.37.1

Driver Information (and browser if relevant):
Chrome

Expected Behavior

When simulating a drag and drop, Capybara should fire a dragenter event before firing dragover
See spec: https://www.w3.org/html/wg/spec/dnd.html

Actual Behavior

The dragenter event does not fire.

Steps to reproduce

Add a listener for dragenter events and verify that when using the drag_to the listener does not fire.

This is because lib/capybara/selenium/extensions/html5_drag.rb does not implement firing dragenter.

I would expect this event to be fire from dragEnterTarget before firing dragover.

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