freshyo/docs/test-cases/profile-account-lifecycle.md
2026-10-11 18:21:24 +05:30

24 lines
2.6 KiB
Markdown

# Profile and account lifecycle
Scope: `getSelfData`, `updateProfile`, `updatePassword`, `deleteAccount`, profile/native Me/web Me. Use disposable accounts for destructive cases.
| ID | Priority | Action / input | Expected result |
|---|---|---|---|
| PROFILE-01 | P1 | Read profile, edit supported fields, relaunch. | Saved values agree in customer and authorized admin views. |
| PROFILE-02 | P1 | Add/replace/remove profile image. | Correct preview/persisted image; previous image handled safely. |
| PROFILE-03 | P1 | Change password, logout, try old then new password. | Old credentials fail; new credentials work. |
| PROFILE-04 | P1 | Empty optional fields, null dates, Unicode/long names/bio. | Supported clearing/limits; no accidental literal null/undefined. |
| PROFILE-05 | P1 | Invalid date, future birth date, leap date, timezone boundary. | Validations/serialization consistent; no shifted birth day. |
| PROFILE-06 | P0 | Change identifier to another account's mobile/email. | Conflict rejected without moving identity or merging accounts. |
| PROFILE-07 | P0 | U2 submits U1 identity fields/ID or image references. | Only authenticated account changes; foreign-owned assets rejected. |
| PROFILE-08 | P1 | Password mismatch/invalid current verification where required. | Rejection leaves usable old credentials. |
| PROFILE-09 | P0 | Delete with wrong confirmation mobile, then correct confirmation. | Wrong request has no effect; valid deletion follows retention policy and logs out. |
| PROFILE-10 | P0 | Use deleted account's old token and attempt relogin. | No access to deleted account/private data or new orders. |
| PROFILE-11 | P0 | Delete account with historical orders/complaints/payment references. | Required audit/history retained or anonymized by approved policy; no unrelated-user damage. |
| PROFILE-12 | P1 | Concurrent profile edits from two devices. | Coherent final fields; no credential/detail row inconsistency. |
| PROFILE-13 | P1 | Upload succeeds but profile save fails. | No false image assignment; retry/cleanup recoverable. |
| PROFILE-14 | P1 | Disconnect during password/deletion save. | Determine persisted outcome before retry; no half-account state. |
| PROFILE-15 | P2 | Profile logout/login across native/web. | Fresh private caches; no cross-account profile flash. |
| PROFILE-16 | P1 | Account deletion UI twice / cancellation of confirmation. | Cancel changes nothing; repeated confirmed action cannot affect another account. |
Open policy: deletion retention/anonymization and old-token invalidation after password change must be explicitly agreed. See [README](README.md).