You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/commands/press.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ componentSpecific: false
12
12
13
13
Trigger native key events in your application to simulate keyboard interactions.
14
14
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.
16
16
17
17
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.
0 commit comments