Commit 12a994f
authored
fix(cockpit): aimock fixtures for the refund interrupts e2e (#558)
The refund rewrite added two LLM calls per turn that the old single
"Hello" fixture didn't cover, so CI failed with `404 No fixture matched`:
- draft_refund's structured extractor hits chat.completions.parse with
response_format=json_schema — match on `responseFormat: "json_schema"`
and return `content` as a JSON object (aimock stringifies it for the
structured-output parser).
- the acknowledgement is a plain-text call — match on the refund system
prompt and return text `content`.
Fixtures cover both welcome suggestions (cus_a8x2k / cus_z19fp). Verified
locally against @copilotkit/aimock: extraction returns the RefundDraft
and the ack returns text. No harness change needed — aimock already
supports structured-output fixtures.1 parent 2980e38 commit 12a994f
1 file changed
Lines changed: 29 additions & 5 deletions
Lines changed: 29 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
7 | 5 | | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
9 | 33 | | |
10 | 34 | | |
11 | 35 | | |
12 | | - | |
| 36 | + | |
0 commit comments