Framework Mode - cy.scrollTo()
Folder Structure of a Cypress Test Project
cypress/ ├── e2e/ # Test specs │ ├── scroll.spec.js # Tests using cy.scrollTo() │ └── otherTests.spec.js ├── fixtures/ # Test data files (JSON) │ └── example.json ├── support/ # Custom commands and reusable code │ ├── commands.js # Custom Cypress commands │ └── e2e.js # Global setup for tests ├── videos/ # Test run videos (auto-generated) └── screenshots/ # Screenshots on test failure cypress.config.js # Cypress configuration file package.json # Project dependencies and scripts