diff --git a/cypress/integration/examples/misc.spec.js b/cypress/integration/examples/misc.spec.js index 8e0c3a656..8d49bdbcb 100644 --- a/cypress/integration/examples/misc.spec.js +++ b/cypress/integration/examples/misc.spec.js @@ -89,8 +89,11 @@ context('Misc', () => { scale: false, disableTimersAndAnimations: true, screenshotOnRunFailure: true, - beforeScreenshot () { }, - afterScreenshot () { }, + // TODO: remove this when Cypress typedefs are fixed + // https://github.com/cypress-io/cypress/pull/7445 + // @ts-ignore + onBeforeScreenshot () { }, + onAfterScreenshot () { }, }) }) })