https://cypress.io logo
for fixing, clearing content in a react ace edito...
# best-practices
a
for fixing, clearing content in a react ace editor i came up with fix like this, can this be a valid function
Copy code
javascript
function typeContentOnSelectingExistingContent(elementId, content) {
  return cy.get(`#${elementId}`).type(`{selectAll}{selectAll}${content}`)
}