Bỏ qua để đến nội dung

Test cases: Admin catalog & products

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

VersionDate (UTC)Summary
1.0.02026-05-13Split from generic admin backend; expanded TC grid
1.1.02026-05-13Additional list/sort/pagination and batch paths

  • Guides: Catalog and products (Admin)
  • API: admin/products, admin/categories, attributes, tags, units, related inventory read APIs where gated the same way.
  • Guards: AdminItemModuleGuard + zone (Admin roles).

IDClassScenarioAutomation
TC-ACP-001HappyProduct list loads with default page size and valid limit from URL paramsUnit + E2E*
TC-ACP-002HappyDebounced search updates query; page resets to 1 on new searchE2E*
TC-ACP-003HappyStatus tab filter syncs API status / list contractUnit + E2E*
TC-ACP-004UnhappyInvalid page or limit → clamp or 400 per API contractUnit
TC-ACP-005UnhappyZoned admin product list excludes out-of-zone storesUnit
TC-ACP-006HappyColumn sort maps to API sort and persists in URLE2E*
IDClassScenarioAutomation
TC-ACP-010HappyCreate item with required fields + valid status enumUnit + E2E*
TC-ACP-011UnhappyMissing required field → 400 with field-scoped errorsUnit
TC-ACP-012UnhappyXSS-ish / oversize name sanitized or rejectedUnit
TC-ACP-013HappyUpdate item toggles status; list reflects without stale cacheUnit + E2E*
TC-ACP-014UnhappyUpdate item in store outside admin zone → 403Unit
TC-ACP-015HappySoft-delete / archive path hides from default list when filter expects active onlyUnit
TC-ACP-016UnhappyDuplicate SKU / slug conflict returns stable errorUnit
IDClassScenarioAutomation
TC-ACP-020HappyBatch status update within max id cap succeeds; toast shows countsUnit + E2E*
TC-ACP-021UnhappyBatch over max ids → client blocks + toast; no API callUnit + E2E*
TC-ACP-022UnhappyRole without item module → 403 on batch and single mutationsUnit
IDClassScenarioAutomation
TC-ACP-030HappyCategory tree list + create child categoryE2E*
TC-ACP-031UnhappyCircular parent assignment rejectedUnit
TC-ACP-032HappyTags / units / attributes CRUD happy pathsE2E*

  • Every Admin*Catalog* controller surface has ≥1 happy + 1 unhappy row or explicit “N/A”
  • Batch cap constant matches admin-web + backend (pagination patterns)
  • Low-stock / top-revenue KPI endpoints covered if exposed in UI

Parent index: System test cases (index) · Cross-cutting: Admin backend