const input = getByTestId('input'); // clearing the input await userEvent.clear(input); // focusing out of the input (if required) fireEvent.focusOut(input);