diff --git a/cypress.config.ts b/cypress.config.ts index 8aa4bd48b24..d7e8743434e 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -32,6 +32,10 @@ export default defineConfig({ // faster video processing videoCompression: false, + // Prevent elements to be scrolled under a top bar during actions (click, clear, type, etc). Default is 'top'. + // https://github.com/cypress-io/cypress/issues/871 + scrollBehavior: 'center', + // Visual regression testing env: { failSilently: false,