Skip to content

Commit c3ead4f

Browse files
sissbrueckerWestbrook
authored andcommittedMay 21, 2021
Add changeset

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 

Diff for: ‎.changeset/mighty-chicken-invite.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@web/test-runner-commands': minor
3+
---
4+
5+
Added support for holding and releasing keys to the sendKeys command. The command now supports two additional actions `down` and `up` which hold down, or release a key. This effectively allows to hold down modifier keys while pressing other keys, which allows key combinations such as `Shift+Tab`.
6+
7+
@example
8+
```ts
9+
await sendKeys({
10+
down: 'Shift',
11+
});
12+
await sendKeys({
13+
press: 'Tab',
14+
});
15+
await sendKeys({
16+
up: 'Shift',
17+
});
18+
```

0 commit comments

Comments
 (0)
Please sign in to comment.