-
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
fix not sending click event to proper element #5580
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've confirmed that this fixes the issue encountered in the Services repo.
attachMouseClickListeners({ btn, span }) | ||
attachMouseHoverListeners({ btn, span }) | ||
|
||
// let clicked = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
turn these into cy.stub
User facing changelog
3.6.0
causing an incorrect element to receive theclick
event during action commands.Additional details
How has the user experience changed?
if the an element moves or does not receive both mouseup and mousedown during cy.click():
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?