Cypress - Element Interactions
You want to test a form where the input field with class
.user-input might already contain text. Which Cypress code snippet correctly clears the input and types 'new text' ensuring no leftover text remains?