CdsButton
and CdsControlAction
not receiving keydown
events in tests
#218
Labels
CdsButton
and CdsControlAction
not receiving keydown
events in tests
#218
Describe the bug
onKeyDown
is never fired during tests for componentsCdsControlAction
andCdsButton
. I first noticed this inCdsControlAction
and reproduced it inCdsButton
while making the repro, so maybe it's an issue with the base button?How to reproduce
Here's a repo that reproduces the problem: https://github.com/dturcotte/cds-control-action-keydown
(stackblitz/codesandbox are problematic for test only repros)
The test output is in the README for your convenience
Steps to reproduce the behavior:
yarn install
yarn test
CdsButton
andCdsControlAction
tests fail, and the<button>
test passesExpected behavior
onKeyDown
should work in testsVersions
Clarity project:
Clarity version:
Framework:
Framework version:
React 18
Device:
Additional notes
The text was updated successfully, but these errors were encountered: