Framework Mode - cy.intercept() for request interception
Folder Structure
cypress/ ├── e2e/ # Test specs │ ├── login.cy.js # Example test file │ └── api-intercept.cy.js # Tests using cy.intercept() ├── fixtures/ # Static test data (JSON, images) │ └── user.json ├── support/ # Custom commands and global setup │ ├── commands.js # Custom Cypress commands │ └── e2e.js # Support file loaded before tests └── config.js # Cypress configuration file (optional) cypress.config.js # Main Cypress config