mirror of
https://github.com/stablyai/orca.git
synced 2026-10-02 16:02:15 +00:00
improve test
This commit is contained in:
+7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user