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
When the `UnitTestElement` dispatches keyboard event sequences, it sends out fake events which didn't have the `code` property. These changes add mappings for common keys to their codes.
Fixesangular#27034.
When the `UnitTestElement` dispatches keyboard event sequences, it sends out fake events which didn't have the `code` property. These changes add mappings for common keys to their codes.
Fixes#27034.
(cherry picked from commit d34d2a2)
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When calling
sendKey
withTestKey.ENTER
on aTestElement
, the keyboard event that gets generated shows blank for thecode
property.Reproduction
Steps to reproduce:
sendKeys(TestKey.ENTER)
on anyTestElement
code
value.See StackBlitz: https://stackblitz.com/edit/harness-issue-zpusdu?file=src%2Fapp%2Fmy-harness-example.spec.ts
Expected Behavior
Keyboard Event
code
value should be'Enter'
.This is from testing out the Enter key on Mozilla's site with Chrome on Windows showing the correct

code
value:Actual Behavior
Keyboard Event
code
value is''
.Environment
The text was updated successfully, but these errors were encountered: