cypress/integration/textarea.js
function repeat(string, times = 1) {
  let result = "";
  let round = times;
  while (round--) {
    result += string;
  }

  return result;
}
function repeat(string, times = 1) {
  let result = "";
  let round = times;
  while (round--) {
    result += string;
  }

  return result;
}
function repeat ( string , times = 1 ) { let result = "" ; let round = times ; while ( round -- ) { result += string ; } return result ; }
Helper function for a repeating of commands

e.g : cy
.get('.rta__textarea')
.type(`${repeat('{backspace}', 13)} again {downarrow}{enter}`);
Helper function for a repeating of commands