When to Bypass UI
- Only test login flow once
- Use HTTP request to backend to log in to test features relying on logged in state
- faster process
- Don't use UI to build state, use HTTP request instead
- make-cypress-custom-command for code needed in multiple places ie. login code, creating sample state to test other features
Source -> Cypress: Bypassing your UI