title: Cypress - let test fail if console.error occurs
body: <p>We would like to let any test in Cypress fail if console.error is called. Sometimes we have errors in the console log which does not let the test fail. We always have to look into the console window to check any error messages </p>