Commit 37152c2
test(seed-demo): assert demo-inv-001 outcome shares customer ownership
The Copilot Autofix in 3c1c097 weakened the guard test to only check
the demo-outcome-NNN format, which would silently allow a regression
back to demo-outcome-001 (owned by demo-cust-marie) on the
demo-cust-jeanluc invoice.
Strengthen the test to derive the outcome's owning customer from
customerDefs using the deterministic seed mapping
(demo-outcome-NNN -> demo-appt-NNN -> demo-visit-NNN ->
customerDefs[(NNN-1) % len]) and assert it matches the invoice's
customerId. Add an explicit regression guard naming
demo-outcome-001 so the original bug cannot return unnoticed.
Co-authored-by: Richard Knapp <RJK134@users.noreply.github.com>1 parent 3c1c097 commit 37152c2
1 file changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
57 | 80 | | |
58 | | - | |
59 | 81 | | |
60 | 82 | | |
61 | 83 | | |
| |||
0 commit comments