https://cypress.io logo
so I guess your translation from gherkin syntax to...
# best-practices
g
so I guess your translation from gherkin syntax to Cypress is incorrect and if the string is empty it should call cy.focus command, not cy.type