There are two ways to simulate user actions. userEvent is the modern, recommended way.
It simulates real browser events more accurately than fireEvent (e.g., a click actually simulates mousedown , mouseup , click , and focus events). react testing library
await userEvent.type(input, 'Hello World'); There are two ways to simulate user actions