Skip to content

feat: extend Cypress.Keyboard.Keys and cy.press to support all keyboard keys #31496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

jennifer-shehane
Copy link
Member

  • Closes

Additional details

Steps to test

How has the user experience changed?

PR Tasks

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

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

  • The code mapping for 'ArrowUp' uses 'U+0010', which is also used for 'Shift' in this mapping. Please verify against the CDP specification and assign a unique key code for 'ArrowUp'.
'ArrowUp': 'U+0010',

'F11': '\uE03B',
'F12': '\uE03C',
'Escape': '\uE00C',
'CapsLock': '\uE008',
Copy link
Preview

Copilot AI Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The BiDi mapping for 'CapsLock' shares the same code ('\uE008') with 'Shift'. Each key should have a unique mapping, so please update one of them to the correct value according to the expected key codes.

Suggested change
'CapsLock': '\uE008',
'CapsLock': '\uE025',

Copilot uses AI. Check for mistakes.

Copy link

cypress bot commented Apr 11, 2025

cypress    Run #61552

Run Properties:  status check failed Failed #61552  •  git commit 88b8f76bf1: Update cli/types/cypress.d.ts
Project cypress
Branch Review feat-all-keys
Run status status check failed Failed #61552
Run duration 13m 03s
Commit git commit 88b8f76bf1: Update cli/types/cypress.d.ts
Committer Jennifer Shehane
View all properties for this run ↗︎

Test results
Tests that failed  Failures 8
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 380
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4997
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  16.76%
  Untested elements 247  
  Tested elements 46  
Accessibility  61.44%
  Failed rules  6 critical   9 serious   4 moderate   0 minor
  Failed elements 709  

Tests for review

Failed  test_errors.cy.ts • 0 failed tests • reporter

View Output

Test Artifacts
Failed  hooks.cy.ts • 0 failed tests • reporter

View Output

Test Artifacts
Failed  memory.cy.ts • 0 failed tests • reporter

View Output

Test Artifacts
Failed  runnables.cy.ts • 0 failed tests • reporter

View Output

Test Artifacts
Failed  routes.cy.ts • 0 failed tests • reporter

View Output

Test Artifacts

The first 5 failed specs are shown, see all 1423 specs in Cypress Cloud.

Flakiness  cypress/e2e/studio/studio.cy.ts • 1 flaky test • app-e2e

View Output

Test Artifacts
Cypress Studio > does not remove the studio url parameters if saving fails Test Replay Screenshots

@jennifer-shehane jennifer-shehane marked this pull request as draft April 15, 2025 02:52
@jennifer-shehane jennifer-shehane self-assigned this Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants