(Cypress) The Test report is broken when the click() method is overwritten in commands.cy.js file #2639
Unanswered
sorind2010
asked this question in
Bug Reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the click method is overwritten in commands.cy.js file, the test report doesn't include Test body and screenshots
Cypress.Commands.overwrite('click', (originalFn, subject, options) => {
// Validate there is no critical error
if(cy.$$('.critical-error').length) {
throw new Error(
Critical error happened!!!!Check screenshot for more details
)} else {
return originalFn(subject, options)
}
})
Beta Was this translation helpful? Give feedback.
All reactions