Commit cd13f60
authored
## Unit tests
- StudentAppealActionsProcessor-processActions
- Should execute actions uniquely when multiple requests with the same
actions are part of the same appeal.
- Should execute multiple actions and pass the parameters as expected
when multiple requests with different actions are part of the same
appeal.
- Should throw an error when the appeal request has an unknown action.
- Should execute the default action when an appeal request has no
actions defined. 🤖
- StudentAppealAction-getActionRequests
- Should return only the requests that include the matching action type.
🤖
- Should include requests without actions only when the action type is
the DEFAULT one (CreateStudentAppealAssessment). 🤖
- StudentAppealAction-hasApprovedAction
- Should throw an error when there are no associated requests for the
action. 🤖
- Should return true when at least one associated request is approved. 🤖
- Should return false when there are associated requests but none is
approved. 🤖
_Note:_ The 🤖 indicates AI-generated-ish tests 😉
## E2E tests
- StudentAppealAESTController(e2e)-approveStudentAppealRequests
- Should approve student appeal requests and add note when the appeal
with appeal requests submitted for approval are in pending status. 🆙
- Modified independent appeal
- Should update the student profile modified independent status as
Approved when a valid modified independent appeal is assessed. 🆕
- Should update the student profile modified independent status as
Declined when a valid modified independent appeal is assessed. 🆕
- StudentAppealStudentsController(e2e)-submitStudentAppeal 🆕
- Should create a student-only appeal and a Ministry notification for
modified independent when the submission is valid.
- Should throw an unprocessable entity error for a student-only appeal
submission when the same appeal request type is pending review from the
Ministry.
- Should throw a bad request error for a student-only appeal submission
when the form data is invalid.
- Should throw a bad request error for a student-only appeal submission
when the form path name is invalid.
## Fixes
- Adjusted the note type to be saved as "General" for a student-only
appeal.
- Fixed the wrong appeal request used to update the student profile. It
was using the student appeal ID instead of the appeal request ID.
1 parent d14d8c9 commit cd13f60
File tree
13 files changed
+855
-25
lines changed- sources/packages/backend
- apps/api/src
- route-controllers
- student-appeal
- _tests_/e2e
- services/student-appeal/student-appeal-assessment
- actions
- _tests_/unit
- libs/test-utils/src/factories
13 files changed
+855
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
Lines changed: 162 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | | - | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
30 | 44 | | |
31 | 45 | | |
32 | 46 | | |
| |||
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
48 | | - | |
49 | 62 | | |
50 | 63 | | |
51 | 64 | | |
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
55 | | - | |
| 68 | + | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
| 74 | + | |
| 75 | + | |
61 | 76 | | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
67 | | - | |
68 | | - | |
| 82 | + | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
75 | 89 | | |
| 90 | + | |
76 | 91 | | |
77 | | - | |
| 92 | + | |
78 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
79 | 99 | | |
80 | | - | |
81 | 100 | | |
82 | 101 | | |
83 | 102 | | |
84 | 103 | | |
85 | 104 | | |
86 | 105 | | |
87 | 106 | | |
88 | | - | |
| 107 | + | |
89 | 108 | | |
90 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
91 | 114 | | |
92 | 115 | | |
93 | | - | |
| 116 | + | |
94 | 117 | | |
| 118 | + | |
95 | 119 | | |
96 | | - | |
| 120 | + | |
97 | 121 | | |
98 | 122 | | |
99 | 123 | | |
100 | 124 | | |
101 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
102 | 253 | | |
103 | 254 | | |
104 | 255 | | |
| |||
0 commit comments