Clear text from an input field using cy.clear()
Preconditions (2)
Step 1: Navigate to the web page containing the input field
Step 2: Type 'testuser' into the input field with id 'username'
Step 3: Use cy.clear() to clear the input field
Step 4: Verify that the input field is empty after clearing
✅ Expected Result: The input field with id 'username' is empty after calling cy.clear()