Testing
Docs/Testing
Tài liệu sống được đồng bộ theo codebase hiện tại.

Playwright E2E

Cách chạy suite E2E cho admin và các luồng public.

Repo hiện có Playwright ở root tests/.

Flow hiện có

  • setup auth state
  • admin public login flow
  • admin dashboard flow

URL mặc định

  • Admin: http://localhost:5173
  • Tenant: http://localhost:5174
  • API: http://localhost:3001/api

Chạy test

bun run e2e

Chạy có giao diện Chromium:

bun run e2e:headed

Hướng mở rộng nên làm tiếp

  • tenant bootstrap
  • support session runtime
  • entitlement denial
  • public website publish/resolve flow