Commit c096dd2
The pause-resume.spec.ts route mock returned `{ok, item}`, but the agent
API's POST /resources/:id/pause|resume responds `{ok, id, token, status,
message, resource}` and api.pauseResource() reads `r.resource`. With the
wrong key adaptResource(undefined) threw, confirm()'s catch fired, and the
modal never closed — failing "Pause → confirm → Resume label flips" on
every run (incl. both retries). Mock now returns `resource`, matching the
backend handler (resource.go Pause/Resume) and api/index.ts.
Full chromium suite: 23 passed.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7ff4875 commit c096dd2
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | | - | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | | - | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
0 commit comments