Complete the code to scroll the page to the bottom using Cypress.
cy.scrollTo([1])"top" scrolls to the top, not bottom."left" or "right" scroll horizontally.Using "bottom" scrolls the page to the bottom.
Complete the code to scroll the element with id 'content' to the top.
cy.get('#content').scrollTo([1])
"bottom" scrolls to the bottom instead."center" scrolls to the middle, not top.The "top" option scrolls the element to its top.
Fix the error in the code to scroll to the right side of the page.
cy.scrollTo([1])"left" scrolls to the left side."bottom" scrolls vertically down.The correct direction to scroll horizontally to the right is "right".
Fill both blanks to scroll the element with class 'box' to the center horizontally and vertically.
cy.get('.box').scrollTo([1], [2])
"top" or "bottom" with horizontal scroll.Using "center" for both horizontal and vertical scroll positions centers the element.
Fill all three blanks to scroll the element with id 'panel' to the bottom right corner smoothly.
cy.get('#panel').scrollTo([1], [2], { easing: [3] })
"top" instead of "bottom" for vertical scroll.Scroll horizontally to "right", vertically to "bottom", and use "linear" easing for smooth scrolling.
