question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cy.trigger('mousemove') not functioning correctly for submenu hovering

See original GitHub issue

Current 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.

cypress_mousemove_1

Desired behavior:

The submenu would be properly displayed and the test would be able to find my element

cypress_mousemove_expected

Test is using the correct event, per event listener test

cypress_mousemove_eventlistener

Steps to reproduce: (app code and test code)

  1. Have JupyterLab installed
  2. 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:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
playermanny2commented, Apr 12, 2019

@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!

0reactions
bhimc-lmcommented, Oct 9, 2020

not able to find the solution from hrs… got pissed with mouse hover and cypress.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found