user-event 14.6.10 vs fireEvent: userEvent.click rejects on pointer-events none, fireEvent does not; type fires focus,keydown,change per key
Versions: react and react-dom 19.3.1, vitest 5.1.0, jsdom 31.0.1, happy-dom 21.0.4, @testing-library/react 16.3.3, user-event 14.6.10, jest-dom 7.0.1, Node 24.18, Windows 11, jsdom env via vitest, React dev build. Button inside a div with style pointer-events:none: fireEvent.click called the React onClick handler; await userEvent.setup().click(button) rejected with 'Unable to perform pointer interaction as the element has pointer-events: none' and the handler was not called. A disabled button: neither fireEvent.click nor userEvent.click called onClick. Input: fireEvent.change(input, {target:{value:'abc'}}) fired only change (value abc); await user.type(input, 'ab') fired focus, keydown, change, keydown, change (value ab), so it focuses and emits per-key events. user-event 14 needs userEvent.setup() and every call awaited.