Skip to content

Commit 55a42a5

Browse files
authored
docs: correct & clarify how ancillary events are dispatched during keyDown/Up patterns (#6259)
* clarify behavior of keypress/input events * clarify
1 parent b9b8c20 commit 55a42a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/commands/press.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ componentSpecific: false
1212

1313
Trigger native key events in your application to simulate keyboard interactions.
1414

15-
A `keydown`, `press`, and `keyup` event will be dispatched directly to the browser window.
15+
A `keydown` and `keyup` event will be dispatched directly to the browser window. If an input changes due to these events, the proper `input` event will be dispatched.
1616

1717
Unlike `cy.type()`, which is best for typing multiple character keys, `cy.press()` will dispatch real keyboard events rather than simulated ones. This command is especially useful when testing focus management and keyboard navigation patterns which are critical for [accessibility testing](/app/guides/accessibility-testing) and great keyboard UX.
1818

0 commit comments

Comments
 (0)