From 9bad387e3dfb584e82a611bffcf00321ae303856 Mon Sep 17 00:00:00 2001 From: Ben Kucera <14625260+Bkucera@users.noreply.github.com> Date: Wed, 3 Jun 2020 12:35:41 -0400 Subject: [PATCH] fix: Screenshot.defaults usage (#425) --- cypress/integration/examples/misc.spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 () { }, }) }) })