From 35d996eebd431a5839eb5be0a79b0f5d069693b8 Mon Sep 17 00:00:00 2001 From: bozdoz Date: Sun, 18 Apr 2021 05:48:15 -0300 Subject: [PATCH] fix(keyboard): recognize `checkbox`/`radio` as clickable inputs (#654) --- src/__tests__/keyboard/plugin/functional.ts | 38 ++++++++++++++++----- src/utils/click/isClickableInput.ts | 2 ++ 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/__tests__/keyboard/plugin/functional.ts b/src/__tests__/keyboard/plugin/functional.ts index 388ee71e..51047b26 100644 --- a/src/__tests__/keyboard/plugin/functional.ts +++ b/src/__tests__/keyboard/plugin/functional.ts @@ -138,7 +138,7 @@ test('trigger click event on [Space] keyup on HTMLButtonElement', () => { }) test('trigger click event on [Space] keyup on HTMLInputElement type=button', () => { - const {element, getEventSnapshot, getEvents} = setup(`