How to ctrl/shift + click in version 14+ #942
-
|
Hello, previously, it was possible to ctrl+click or shift+click using However, these options have been removed in the version 14. So I am trying to do: await userEvent.keyboard('{Control>}');
await userEvent.click(screen.getByText('zebras'));
await userEvent.keyboard('{/Control}');but it doesn't work. How I can do it properly? 🤔 Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Also tried: await userEvent.pointer([
{ target: screen.getByText('zebras') },
{ keys: '{Control>}[MouseLeft]{/Control}', target: screen.getByText('zebras') },
]); |
Beta Was this translation helpful? Give feedback.
-
|
You need to start a session. (This is also the recommended way to use this library in If you call the methods on the default export, the calls each act on their own input device state. |
Beta Was this translation helpful? Give feedback.
You need to start a session. (This is also the recommended way to use this library in
v14.)If you call the methods on the default export, the calls each act on their own input device state.