cypress-failed-log icon indicating copy to clipboard operation
cypress-failed-log copied to clipboard

With `cypress-plugin-retries`: TypeError: Cannot read property 'duration' of undefined

Open mccataldo opened this issue 6 years ago • 1 comments

With cypress-plugin-retries installed, cy.screenshot yields the error,

TypeError: Cannot read property 'duration' of undefined

I can avoid the failure by disabling cypress-plugin-retries or removing the invocation of cy.screenshot from onFailed

mccataldo avatar Jun 27 '19 17:06 mccataldo

It appears takeScreenshot (Cypress runner) isn't returning props which is the undefined value that the error is referring to.

mccataldo avatar Jun 27 '19 18:06 mccataldo