@testing-library/user-event
Version:
Fire events the same way the user does
16 lines (13 loc) • 381 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])',
'details > summary'
].join(', ');
exports.FOCUSABLE_SELECTOR = FOCUSABLE_SELECTOR;