diff --git a/docs/api/commands/press.mdx b/docs/api/commands/press.mdx index 03e2db8901..a9c1dbb268 100644 --- a/docs/api/commands/press.mdx +++ b/docs/api/commands/press.mdx @@ -4,6 +4,7 @@ description: Trigger native key events in your application to simulate keyboard sidebar_label: press slug: /api/commands/press componentSpecific: false +sidebar_custom_props: { 'new_label': true } --- @@ -12,7 +13,7 @@ componentSpecific: false Trigger native key events in your application to simulate keyboard interactions. -A `keydown`, `press`, and `keyup` event will be dispatched directly to the browser window. +A `keydown` and `keyup` event will be dispatched directly to the browser window. 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.