Introduction
We use cy.clear() to remove any text inside input boxes. This helps us start fresh before typing new text.
When you want to erase old text before entering new data in a form.
When testing if an input field can be cleared by the user.
When resetting a form field during automated tests.
When verifying that clearing an input updates the page correctly.