Current behavior
When the target element is a button type('{enter}') fires the events

Note the first "click" is from activating the button.
Desired behavior
When the target element is a button type('{enter}') should fire the events
- keydown
- keypress
- click
- keyup

Note the first "click" is from activating the button.
Test code to reproduce
https://github.com/jamime/cypress-test-tiny
Cypress Version
9.2.0
Other
If the key is the Enter or key and the current focus is on a state-changing element, the default action MUST be to dispatch a click event, and a DOMActivate event if that event type is supported by the user agent (refer to § 3.5 Activation triggers and behavior for more details)
https://w3c.github.io/uievents/#event-type-keydown
Once the cypress test has failed, if you click "reset", then click the second button and press "Enter" you will see the correct output.
Current behavior
When the target element is a button
type('{enter}')fires the eventsNote the first "click" is from activating the button.
Desired behavior
When the target element is a button
type('{enter}')should fire the eventsNote the first "click" is from activating the button.
Test code to reproduce
https://github.com/jamime/cypress-test-tiny
Cypress Version
9.2.0
Other
https://w3c.github.io/uievents/#event-type-keydown
Once the cypress test has failed, if you click "reset", then click the second button and press "Enter" you will see the correct output.