-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
click not firing mouseover event #2928
Comments
Could you provide a reproducible example of this? With test code + application code. |
This repo reproduces the error : |
@jkeruzec I was able to reproduce, thank you. We are aware of this issue because we do not yet send mouseover/pointerover events during a click. We'll have a fix in either 3.1.3 or 4.0 in the meantime, you can do this: cy.get('.react-contexify__item__data')
.trigger('mouseover').click()
.then(() => {
expect(stub).to.be.calledWith('Hello bug !');
}); |
Workaround works beautifully ! Thanks for that ! |
Closing as duplicate of #1847 |
The code for this is done in cypress-io/cypress#3030, but has yet to be released. |
Released in |
Current behavior:
I trigger some react-contextify menu with
.trigger('contextmenu')
My menu is displaying OK
Then I select the div element where an onClick event is attached.
cy.get('.react-contexify__item').debug().click();
I tried to use also "force: true" as an option.
But my action is not triggered. Nothing happens.
With debug() option activated, I trigger manually the click() event and my Material UI dialog is displayed.
Source for div menu is like this:
Desired behavior:
I trigger click event and dialog is shown...
Versions
Cypress Version used : 3.1.3
Chrome 70.0.3538.110
React 16.6.3
react-contexify : 3.0.3
The text was updated successfully, but these errors were encountered: