cy.trigger('mousemove') not functioning correctly for submenu hovering
See original GitHub issueCurrent behavior:
When using .trigger('mousemove')
on my element it does not show the submenu in order for the test to proceed and find the next element.
It just pause, it seems to fire the event as a small grey rectangle appears but it does nto show the actual menu. What’s confusing is it does not work with cypress pragmatically, but if i hover over in the browser manually it appears.
Desired behavior:
The submenu would be properly displayed and the test would be able to find my element
Test is using the correct event, per event listener test
Steps to reproduce: (app code and test code)
- Have JupyterLab installed
- Utilize test( contain can be replaced with viable open with option)
cy.get('.p-Menu-item div:contains("Open With")')
.trigger('mousemove')
cy.get('.p-Menu-itemLabel div:contains("Voyager")')
.trigger('mousemove')
.click()
Versions
3.2.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Cypress: mouseover mousedown mousemove mouseup Not ...
Seems that mousemove is not going to work unless you call it again after changing the coordinates in a previous call.
Read more >Mouse Over using trigger and invoke methods in Cypress - Part
In this video, I have explained how to perform mouse over using trigger - mouseover event and invoke - show option.
Read more >Part 16-Cypress Mouse Events(click,rightclick,doubleclick ...
How to work with Mouse Events in Cypress?1. .click() or . trigger ('click')2. .rightclick() or trigger ('contextmenu')3. .dblclick() or ...
Read more >trigger | Cypress Documentation
Trigger a mouseover on the button. The DOM element must be in an "interactable" state prior to the triggered event happening (it must...
Read more >Handling Hover Over Menu'S Using Cypress - ADocLib
when I used trigger'mouseover' cypress focuses on element but sub menu items are not displayed. As cy.hover is not available what else can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tnrich Hmm just tried that within my environment, still doesn’t pop up…I then tried it in the binder environment and it worked fine from my cypress install…so a step closer forsure, I now know it has to be something specific within my environment doing some wonky stuff
Thanks for all your help thus far, I’ll close this as it isn’t a cypress issue!
not able to find the solution from hrs… got pissed with mouse hover and cypress.