@testing-library/user-event
Version:
Fire events the same way the user does
13 lines (11 loc) • 323 B
JavaScript
const FOCUSABLE_SELECTOR = [
'input:not([type=hidden]):not([disabled])',
'button:not([disabled])',
'select:not([disabled])',
'textarea:not([disabled])',
'[contenteditable=""]',
'[contenteditable="true"]',
'a[href]',
'[tabindex]:not([disabled])'
].join(', ');
export { FOCUSABLE_SELECTOR };