diff --git a/test/cypress/support/e2e.ts b/test/cypress/support/e2e.ts index 2373e4789d..171a04bad6 100644 --- a/test/cypress/support/e2e.ts +++ b/test/cypress/support/e2e.ts @@ -23,3 +23,12 @@ addCompareSnapshotCommand({ capture: 'fullPage', errorThreshold: 0.15, }) + +Cypress.Screenshot.defaults({ + onBeforeScreenshot($el) { + $el.css('overflow', 'hidden') + }, + onAfterScreenshot($el) { + $el.css('overflow', 'auto') + }, +})