Problem Statement
When do you use Cypress or Playwright and what do you assert?
Explanation
Use E2E for user flows across pages: routing, forms, auth, and API integration. Assert URL changes, visible text, network stubs, and accessibility. Keep tests resilient by using data-testid selectors.