-
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
Cypress's dblclick does not function the same way as a user double clicking #3224
Comments
Also, for context, the reason I was trying to test this is I want to ensure that a particular button will only trigger the associated action once, rather than twice. Right now we have a button that will trigger it's associated event multiple times if rapidly clicked in succession, but which should be locking out the user immediately after it is used the first time. I've also tried |
Possible consideration, what if |
@calvinballing this is a known issue and will be fixed alongside #2956 Currently we just fire the What is your app code regarding this behavior?
for example, are you using rxjs |
as a workaround, you can try this: cy.get('button#foobar')
.trigger('click', {detail: 1})
.trigger('click', {detail: 2})
.trigger('dblclick', {detail: 2}) |
@bkucera Using multiple instances of |
|
The code for this is done in cypress-io/cypress#3030, but has yet to be released. |
Released in |
Current behavior:
Firing Cypress's
dblclick()
does not behave the same way as a user double clicking an element. Specifically, if there is no special meaning for a double click, then when a user double clicks, the firstclick
event triggers aclick
action. However, withdblclick()
, if nothing is defined specifically for a double click, then the element is put in focus, but the action associated with a single click does not occur. See test example below.Desired behavior:
Firing Cypress's
dblclick()
behaves the same way as a user double clicking an element. I would expect that in both the examples below Cypress would navigate to the "mission" page, because a user double clicking on a link would be interpreted as a singleclick
event if no special meaning is defined for the double click.Steps to reproduce:
Versions
Windows 10
Cypress 3.1.4
Chrome 71
The text was updated successfully, but these errors were encountered: