Commit f769875
Fix Cypress payment test: use /payments endpoint instead of /pledges
The `should have payments in the system after demo import` test was
calling `/api/deposits/{id}/pledges` which returns pledge-type records
linked to a deposit. In ChurchCRM, pledges are never linked to deposits
(no dep_id); only payment records carry a dep_id. The correct endpoint
is `/api/deposits/{id}/payments`.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b18a656 commit f769875
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
| |||
207 | 205 | | |
208 | 206 | | |
209 | 207 | | |
| 208 | + | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
213 | | - | |
| 212 | + | |
214 | 213 | | |
215 | 214 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
| |||
0 commit comments