Skip to content

Commit 72a49cc

Browse files
Merge branch 'develop' into issue-32476
2 parents 6f7d229 + 556243a commit 72a49cc

File tree

9 files changed

+19
-7
lines changed

9 files changed

+19
-7
lines changed

cli/CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<!-- See the ../guides/writing-the-cypress-changelog.md for details on writing the changelog. -->
2-
## 15.2.1
2+
## 15.3.0
33

4-
_Released 9/23/2025 (PENDING)_
4+
_Released 9/23/2025_
5+
6+
**Features:**
7+
8+
- Added Escape key support to [`cy.press()`](http://on.cypress.io/api/press). Addresses[#32429](https://github.com/cypress-io/cypress/issues/32429). Addressed in [#32545](https://github.com/cypress-io/cypress/pull/32545).
59

610
**Bugfixes:**
711

@@ -11,8 +15,8 @@ _Released 9/23/2025 (PENDING)_
1115

1216
**Misc:**
1317

14-
- Update the styles for command grouping 'line' so on expansion it is displayed correctly. Addressed in [#32521](https://github.com/cypress-io/cypress/pull/32521)
15-
- Test hook names now correctly display with a semi-bold font weight. Addressed in [#32491](https://github.com/cypress-io/cypress/pull/32491).
18+
- Update the styles for command grouping 'line' so on expansion it is displayed correctly. Addressed in [#32521](https://github.com/cypress-io/cypress/pull/32521).
19+
- Test hook names now correctly display with a semi-bold font weight. Addresses [#32477](https://github.com/cypress-io/cypress/issues/32477). Addressed in [#32491](https://github.com/cypress-io/cypress/pull/32491).
1620
- Updated the Cypress Studio panel to not show bottom border. Addresses [#32478](https://github.com/cypress-io/cypress/issues/32478).
1721

1822
**Dependency Updates:**

cli/types/cypress-automation.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ declare namespace Cypress {
1212
'Tab' |
1313
'Backspace' |
1414
'Delete' |
15-
'Insert'
15+
'Insert' |
16+
'Escape'
1617

1718
type SupportedKey = SupportedNamedKey | string | number
1819
}

cli/types/cypress.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ declare namespace Cypress {
698698
SPACE: 'Space',
699699
DELETE: 'Delete',
700700
INSERT: 'Insert',
701+
ESC: 'Escape',
701702
},
702703
}
703704

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cypress",
3-
"version": "15.2.0",
3+
"version": "15.3.0",
44
"description": "Cypress is a next generation front end testing tool built for the modern web",
55
"private": true,
66
"scripts": {

packages/driver/cypress/e2e/commands/actions/press.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('src/cy/commands/actions/press', () => {
88
cy.visit('/fixtures/input_events.html')
99
})
1010

11-
it('fires the click event on the button when the named key is sent', () => {
11+
it('fires the click event on the button when the named key for Space is sent', () => {
1212
cy.get('#button').focus()
1313
cy.get('#button').should('be.focused')
1414
cy.press(Cypress.Keyboard.Keys.SPACE)

packages/driver/src/cy/keyboard.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,7 @@ const Keys: Record<string, Cypress.SupportedNamedKey> = {
14121412
SPACE: 'Space',
14131413
DELETE: 'Delete',
14141414
INSERT: 'Insert',
1415+
ESC: 'Escape',
14151416
}
14161417

14171418
export default {

packages/server/eslint.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ export default [
55
...baseConfig,
66
{
77
languageOptions: {
8+
parserOptions: {
9+
tsconfigRootDir: __dirname,
10+
},
811
globals: {
912
...globals.node,
1013
globalThis: 'readonly',

packages/server/lib/automation/commands/key_press.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export const BidiOverrideCodepoints: Record<SupportedNamedKey, string> = {
121121
'Delete': '\uE017',
122122
'Insert': '\uE016',
123123
'Space': '\uE00D',
124+
'Escape': '\uE00C',
124125
}
125126

126127
// any is fine to be used here because the key must be typeguarded before it can be used as a supported key

packages/types/src/automation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const NamedKeys: SupportedNamedKey[] = [
2727
SpaceKey,
2828
'Delete',
2929
'Insert',
30+
'Escape',
3031
]
3132

3233
// utility type to enable the SupportedKey union type

0 commit comments

Comments
 (0)