diff --git a/src/renderer/src/components/automations/automation-run-history-keyboard-navigation.test.ts b/src/renderer/src/components/automations/automation-run-history-keyboard-navigation.test.ts index 8951d320205..7316454ad7e 100644 --- a/src/renderer/src/components/automations/automation-run-history-keyboard-navigation.test.ts +++ b/src/renderer/src/components/automations/automation-run-history-keyboard-navigation.test.ts @@ -88,6 +88,13 @@ describe('shouldHandleAutomationRunHistoryKey', () => { expect(shouldHandleAutomationRunHistoryKey(makeEvent({ key: 'Enter', target: link }))).toBe( false ) + + const tabTrigger = document.createElement('div') + tabTrigger.setAttribute('role', 'tab') + expect( + shouldHandleAutomationRunHistoryKey(makeEvent({ key: 'Enter', target: tabTrigger })) + ).toBe(false) + expect( shouldHandleAutomationRunHistoryKey(makeEvent({ key: 'ArrowDown', target: button })) ).toBe(true)