135dika revised this gist 2 days ago. Go to revision
1 file changed, 97 insertions
manage-assigne-test-plan.md(file created)
| @@ -0,0 +1,97 @@ | |||
| 1 | + | # manageAssignee E2E Test Plan | |
| 2 | + | ||
| 3 | + | ## Setup | |
| 4 | + | ||
| 5 | + | 1. **Assigner** creates transmittal with 2+ documents (PDF), assigns: | |
| 6 | + | - User A → CHECKER | |
| 7 | + | - User B → APPROVER | |
| 8 | + | - User C → CC | |
| 9 | + | 2. **User A** opens transmittal, annotates doc 1 (draw shape + sticky note) | |
| 10 | + | 3. **User B** annotates doc 1 (draw text) | |
| 11 | + | 4. **User C** annotates doc 2 (draw arrow) | |
| 12 | + | ||
| 13 | + | --- | |
| 14 | + | ||
| 15 | + | ## Test Cases | |
| 16 | + | ||
| 17 | + | ### 1. Cancel CHECKER → annotations deleted, others preserved | |
| 18 | + | ||
| 19 | + | | Who | Action | Verify | | |
| 20 | + | |---|---|---| | |
| 21 | + | | Assigner | Cancel User A | User A removed from approval list | | |
| 22 | + | | User A | Re-open transmittal | Doc 1 annotations **gone** (hard-deleted) | | |
| 23 | + | | User B | Open doc 1 | Annotations **still there** | | |
| 24 | + | | User C | Open doc 2 | Annotations **still there** | | |
| 25 | + | ||
| 26 | + | ### 2. Cancel CC → annotations deleted | |
| 27 | + | ||
| 28 | + | | Who | Action | Verify | | |
| 29 | + | |---|---|---| | |
| 30 | + | | Assigner | Cancel User C | User C removed from CC list | | |
| 31 | + | | User C | Re-open transmittal | Doc 2 annotations **gone** | | |
| 32 | + | ||
| 33 | + | ### 3. Switch user → old annotations deleted, new user fresh | |
| 34 | + | ||
| 35 | + | | Who | Action | Verify | | |
| 36 | + | |---|---|---| | |
| 37 | + | | Assigner | Switch User B → User D | User B removed, User D now APPROVER | | |
| 38 | + | | User B | Re-open | Annotations **gone** | | |
| 39 | + | | User D | Open doc 1 | No annotations (fresh) | | |
| 40 | + | ||
| 41 | + | ### 4. SwitchRole CK/AP → CC → annotations preserved | |
| 42 | + | ||
| 43 | + | | Who | Action | Verify | | |
| 44 | + | |---|---|---| | |
| 45 | + | | Assigner | Re-assign User A as CHECKER | — | | |
| 46 | + | | User A | Annotate doc 1 again | — | | |
| 47 | + | | Assigner | SwitchRole User A → CC | User A now CC, not in approval list | | |
| 48 | + | | User A | Open doc 1 | Annotations **still there** (same user) | | |
| 49 | + | ||
| 50 | + | ### 5. SwitchRole CC → CK/AP → annotations preserved | |
| 51 | + | ||
| 52 | + | | Who | Action | Verify | | |
| 53 | + | |---|---|---| | |
| 54 | + | | Assigner | SwitchRole User A → CHECKER | User A now CHECKER | | |
| 55 | + | | User A | Open doc 1 | Annotations **still there** | | |
| 56 | + | ||
| 57 | + | ### 6. SwitchRole CK ↔ AP → annotations preserved | |
| 58 | + | ||
| 59 | + | | Who | Action | Verify | | |
| 60 | + | |---|---|---| | |
| 61 | + | | Assigner | SwitchRole User A → APPROVER | User A now APPROVER | | |
| 62 | + | | User A | Open doc 1 | Annotations **still there** | | |
| 63 | + | ||
| 64 | + | --- | |
| 65 | + | ||
| 66 | + | ## Activity Log — Human-readable | |
| 67 | + | ||
| 68 | + | | Action | Expected log text (example) | | |
| 69 | + | |---|---| | |
| 70 | + | | Cancel CHECKER | `Jane Doe cancelled CHECKER assignment for John Smith.` | | |
| 71 | + | | Cancel CC | `Jane Doe cancelled CC assignment for John Smith.` | | |
| 72 | + | | Switch | `Jane Doe switched CHECKER assignment from John Smith to Bob Wilson.` | | |
| 73 | + | | SwitchRole → CC | `Jane Doe changed John Smith role from CHECKER to CC.` | | |
| 74 | + | | SwitchRole CC → CK | `Jane Doe changed John Smith role from CC to CHECKER.` | | |
| 75 | + | | SwitchRole CK ↔ AP | `Jane Doe changed John Smith role from CHECKER to APPROVER.` | | |
| 76 | + | ||
| 77 | + | --- | |
| 78 | + | ||
| 79 | + | ## Notifications | |
| 80 | + | ||
| 81 | + | | Action | Who gets notified | Content | | |
| 82 | + | |---|---|---| | |
| 83 | + | | Cancel | Canceled user | Assignment cancelled | | |
| 84 | + | | Switch | Old user + new user | Switched + assigned | | |
| 85 | + | | SwitchRole | Affected user | Role changed | | |
| 86 | + | ||
| 87 | + | --- | |
| 88 | + | ||
| 89 | + | ## Auth — Negative cases | |
| 90 | + | ||
| 91 | + | | Who | Action | Expected | | |
| 92 | + | |---|---|---| | |
| 93 | + | | Submitter (not assigner) | Cancel any user | **403** "Only the user who assigned this participant..." | | |
| 94 | + | | Assigner X | Cancel user assigned by Assigner Z | **403** (only own assignees) | | |
| 95 | + | | Anyone | Cancel on closed transmittal | **412** | | |
| 96 | + | | Anyone | Cancel user already approved | **412** | | |
| 97 | + | | Anyone | SwitchRole CK ↔ CK (same role) | **400** | | |
Newer
Older