Frontend & browser·Testing a user interface
the test typed into the field character by character instead of setting the value in one go.
User event simulation
Also calleduserEvent, realistic interaction
Driving a test through the full sequence of events a real interaction produces — pointer down, focus, key down, input, key up — rather than dispatching a single synthetic event. It catches everything that depends on focus, on key handling, or on intermediate states, which a direct value assignment skips entirely. It is slower and it is what makes the test's passing mean something.