food-market/tests/e2e/reports
nns 17a454cce5 test(e2e): scenario documents-edge — критичные edge-кейсы посту
10 шагов покрывают самую опасную зону системы (потеря денег/остатков):

1. Bootstrap: орг + admin + product + supply (10 шт по 100 KZT).
2. Supply.Post → stock=10 invariant.
3. RetailSale qty=15 (>stock 10) → POST /post → 409 «Недостаточно».
4. После заблокированного post: stock=10 + Stock == Σ StockMovement.
5. RetailSale PaidCash+PaidCard < Total → 4xx (валидация платежа).
6. PUT проведённой Supply → 409.
7. DELETE проведённой Supply → 409.
8. После Sale qty=5: unpost Supply qty=10 → 409 (stock уйдёт в минус).
9. Дубль штрихкода в одной орге → 4xx.
10. Тот же штрихкод в другой орге → 201 (per-tenant unique).

Запуск: `bash tests/e2e/run.sh documents-edge --api-only`.
Все 10 шагов зелёные после фиксов RetailSale.Post + Supply.Unpost.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 12:33:51 +05:00
..
documents-edge-2026-05-23T07-32-53-747Z.md test(e2e): scenario documents-edge — критичные edge-кейсы посту 2026-05-23 12:33:51 +05:00
full-cycle-2026-05-07-baseline.md feat(e2e): infrastructure + first full-cycle scenario + baseline report 2026-05-08 00:05:52 +05:00
full-cycle-2026-05-07T19-04-12-955Z.md feat(e2e): infrastructure + first full-cycle scenario + baseline report 2026-05-08 00:05:52 +05:00
full-cycle-2026-05-07T19-05-09-027Z.md feat(e2e): infrastructure + first full-cycle scenario + baseline report 2026-05-08 00:05:52 +05:00
full-cycle-2026-05-08-after-fixes.md e2e: full-cycle отчёт после fix 1+2+3 (Cashier 403/Identity-role + phone ФЛК + units global) 2026-05-08 01:34:55 +05:00
full-cycle-2026-05-08-bugs-fixed.md e2e: bugs-fixed отчёт — все 12 шагов зелёные после fix HIGH+MEDIUM+2 gap'а 2026-05-08 12:16:17 +05:00
full-cycle-2026-05-08-full-pass.md test(e2e): починка контрактов supply/sale + EAN-13 + bug-hunt + full-pass отчёт 2026-05-08 11:01:56 +05:00
full-cycle-2026-05-23T07-24-23-067Z.md docs(e2e): systemic test report 2026-05-23 — оба сценария зелёные 2026-05-23 12:26:40 +05:00
multi-tenant-isolation-2026-05-23T07-24-06-445Z.md docs(e2e): systemic test report 2026-05-23 — оба сценария зелёные 2026-05-23 12:26:40 +05:00
systemic-2026-05-23.md docs(e2e): systemic test report 2026-05-23 — оба сценария зелёные 2026-05-23 12:26:40 +05:00