-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 use Leaflet mapbox polygons, squares etc. focus stays on center of map. #2255
Comments
Because you're triggering the events directly yourself and never once fire the Is there a reason you're not using When you use |
I first tried the cy.get(flightArea.map)
.click({x: 800, y: 300, force: true})
.click({x: 600, y: 600, force: true}) and many other versions of the .click to get it to work. I went with the .trigger way because of the documentation at https://docs.cypress.io/api/commands/trigger.html#Trigger-a-mouseover-on-the-button If this isnt a bug how should I be accessing the drag and drop feature of cypress to create a box? |
@Bender55 Have you looked over some of the drag and drop examples here? https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/testing-dom__drag-drop/cypress/integration/drag_n_drop_spec.js I admit, it can be quite tricky to find the events that your particular plugin is expecting sometimes. here's another thread for a jquery drag and drop implementation: #1542 (comment) and some advice on listening to what events are being fired here: #669 (comment) |
looking now thanks! |
Jennifer on the documention there is an extra which: 1 that makes it not work. currently the docs show
at least for the leaflet mapbox I am using it finally works when I remove the "which: 1" from mouse down
please feel free to close this issue. |
Current behavior:
I am unable to use the drawing features of leaflet mapbox other than to have focus on the center of the map. I can click the draw area icon and activate it but am unable to get the actions to work within leaflet. I've read on the chat boards that others have had this issue but no one has offered a solution
Desired behavior:
I want mimic the user by clicking the draw area icon and then be able draw shapes on the map and generally interact with the map.
Steps to reproduce:
you can reproduce this on a leaflet mapbox (if you need access to one let me know) and mimic the user drawing a square on the map.
The events fire off correctly and give a success message but nothing is actually done other than put a focal point on the center of the map.
Versions
Cypress 3.0.1
-electron 59 . repro
-chrome 67 (unable to get leaflet mapbox to work at all)
The text was updated successfully, but these errors were encountered: