Repository navigation
Commit cc2ce02
fix(e2e): addStockAdjustment fills qty (step=1) + the new required unit-cost field (#334)
The 4 allocation e2e tests (regressions, sales-fulfillment, sales-management) failed
at addStockAdjustment waiting for '1 adjustment saved' that never appeared. Root
cause (reproduced against an isolated e2e DB): a unit-cost number field was added to
the bulk-adjustment dialog, so the helper's input[type=number].last() now filled
UNIT COST instead of qty — leaving qty empty ('Enter a non-zero quantity'), so the
save never persisted (stock_movements stayed 0). Target the qty field specifically
(step=1) and supply the now-required unit cost for the positive new-product line.
Not a production bug: the stock adjustment flow works; the helper selector was stale.
Verified all 4 previously-failing specs pass locally against an isolated ims_e2e DB.
Co-authored-by: OneTwo3D IMS <dev@onetwo3d.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6f50d8b commit cc2ce02
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
0 commit comments