Cypress: Default Scroll Behaviour
Jul 25, 2022
Did you know that Cypress scroll to the element when you use commands like
click(), select() and type() by default.
And there will be instances where you don’t want this auto scroll to happen and Cypress provides option to disable this and you can disable this using flag scrollBehavior set to false at
1️⃣ Global Config level
2️⃣ Test Level
3️⃣ Command Level