Il testing end-to-end (E2E) verifica l'intera applicazione dal punto di vista dell'utente — testando i flussi di lavoro completi attraverso il sistema reale (UI, backend, database) come un utente li sperimenterebbe. Fornisce la massima sicurezza che l'intero sistema funzioni, ma è più lento e fragile.
Cosa fa il testing E2E
E2E tests verify COMPLETE user flows through the WHOLE system:
→ simulate a real USER: open the app, click/type, navigate, submit, verify results
→ exercise the FULL stack: UI → backend → database → and back (everything integrated)
→ e.g. "user logs in, adds an item to the cart, checks out, sees confirmation"
→ tests the app as users actually experience it.
