In some React applications fillField does not clear the field and value gets appended.
This is how you can overcome this issue and update fields in React.
With append field we select the field, by pressing Shift-Home we select the whole text (can be different on Mac), and then we replace that with the new input.