Skip to content

Commit 255a128

Browse files
committed
address feedback
1 parent 6e9ad23 commit 255a128

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cdk-experimental/testing/test-element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
/** Keyboard keys that do not result in input characters. */
1010
import {ModifierKeys} from '@angular/cdk/testing';
1111

12+
/** An enum of non-text keys that can be used with the `sendKeys` method. */
13+
// NOTE: This is a separate enum from `@angular/cdk/keycodes` because we don't necessarily want to
14+
// support every possible keyCode. We also can't rely on Protractor's `Key` because we don't want a
15+
// dependency on any particular testing framework here. Instead we'll just maintain this supported
16+
// list of keys and let individual concrete `HarnessEnvironment` classes map them to whatever key
17+
// representation is used in its respective testing framework.
1218
export enum TestKey {
1319
BACKSPACE,
1420
TAB,

0 commit comments

Comments
 (0)