Skip to content

Commit c07b40d

Browse files
docs: add a new label to press api (#6267)
* docs: add a new label to press api * pass new label in correctly * remove 'press' event in doc
1 parent 223680f commit c07b40d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/api/commands/press.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: Trigger native key events in your application to simulate keyboard
44
sidebar_label: press
55
slug: /api/commands/press
66
componentSpecific: false
7+
sidebar_custom_props: { 'new_label': true }
78
---
89

910
<ProductHeading product="app" />
@@ -12,7 +13,7 @@ componentSpecific: false
1213

1314
Trigger native key events in your application to simulate keyboard interactions.
1415

15-
A `keydown`, `press`, and `keyup` event will be dispatched directly to the browser window.
16+
A `keydown` and `keyup` event will be dispatched directly to the browser window.
1617

1718
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.
1819

0 commit comments

Comments
 (0)