End-to-end (E2E) testing ตรวจสอบ แอปพลิเคชันที่สมบูรณ์จากมุมมองของผู้ใช้ — ทดสอบ workflow ทั้งหมดผ่านระบบจริง (UI, backend, ฐานข้อมูล) อย่างที่ผู้ใช้จะได้สัมผัส มันให้ความมั่นใจสูงสุดว่าทั้งระบบทำงานได้ แต่ช้ากว่าและเปราะบางกว่า
E2E testing ทำอะไร
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.
