@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 9765895
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 17:00 UTC

docs: update F0-03 controlled QA pass and maintain authenticated E2E gate

davoodmehraban89 committed Oct 11, 2026 at 19:37 UTC 9765895c0465455a8b4daa1f86ed8a84a2a89181
1 file changed +6 -1
docs/FINORA_PHASE0_BASELINE_2026-10-11.md
+6 -1
@@ -16,7 +16,7 @@ All items remain **OPEN or UNVERIFIED** unless specifically shown otherwise. Fix
16 |---|---|---|---|---|---|
17 | `F0-01` | **P0** | QA / auth | Login from owner's affected ISP, diagnostics result and authenticated reload; no repeated generic network error. | Site + Supabase synthetic auth probes working from remote; affected ISP user session unverified. | Real authorized login/refresh succeeds, or reproducible failure is isolated to network, DNS, auth, device with verified mitigation. |
18 | `F0-02` | **P0** | UX + data integration | Existing customer tenant: invoice items, type `هارد` or known `بلوک` and inspect real list; select product and verify unit/price. Also existing contact/seller lookup. | PR #69 released and synthetic Chromium passed; real account catalog not authenticated-verified. | Item appears for authorized company, with correct option on click/filter and row metadata after selection, and no other tenant leaked. |
19 -| `F0-03` | **P0** | Commerce / QA | Isolated safe invoice create→save→navigate→reload→edit→print; verify no lost item, duplicate invoice or incorrect totals. Avoid writing disposable test finance into real production. | Previous save/reload fixture blocked by null `currentUser`; this did **not** establish product bug. | Controlled session persistence and failure/retry tested; approved real tenant smoke if safe. |
19 +| `F0-03` | **P0** | Commerce / QA | Isolated safe invoice create→save→navigate→reload→edit→print; verify no lost item, duplicate invoice or incorrect totals. Avoid writing disposable test finance into real production. | **CONTROLLED QA PASS 2/2** — remote Chromium browser with local mock `finora_sync_records` RPC and persisted mock server records; edit/reload/print, retry/no duplicate all pass. Owner-authenticated live session and actual Supabase persistence NOT YET VERIFIED. | Exact test committed and CI green, plus owner-authenticated safe-scope persistence verification before full closure. |
20 | `F0-04` | **P0** | Finance print / QA | User-authenticated pre-existing formal/nonformal/purchase/taxpayer print preview, Persian dates and serial, all lines, single-page/reference layout where required, printer differences. | PR #71 deployed; synthetic real-domain print PASS; physical printer and actual saved invoice unverified. | Real visible print and PDF match source amounts, with Persian readable digits; no unexpected pagination. |
21 | `F0-05` | **P1** | UX / performance | 1,000+ authorized product/contact/account/project/contract options: click shows list, typing filters quickly without blocked UI, keyboard/Escape/selection works. | Earlier 60 controlled DOM and inline-combobox tests; exhaustive 1,000+ stress unverified. | Recorded browser budget and bounded response time; no missing results or selection corruption. |
22 | `F0-06` | **P1** | UI / QA | Keyboard, modal/Escape, all critical save/delete/import/export controls, RTL scroll ownership, dark/light display across main workflows. | Partial controlled tests; screenshot-specific user acceptance pending. | Critical flow controls are exercised and evidence linked to screenshots/test traces. |
@@ -36,3 +36,8 @@ All items remain **OPEN or UNVERIFIED** unless specifically shown otherwise. Fix
36 - Roadmap signoff is not permission to change production authentication, credentials, RLS, schema, membership, finance history, or real customer data. Require discrete owner approval for sensitive / irreversible changes and production accounting cutover.
37 - Rollback for these docs: revert the dedicated documentation PR. Live application runtime unchanged by this checkpoint.
38 - Next manager: start with `F0-03` isolated persistence regression and prove write/reload semantics, then reproduce or verify `F0-01` from affected user network; close each with exact evidence and update `PROJECT_STATE.md`.
39 +
40 +## 2026-10-11 F0-03 isolated regression execution update
41 +- Exact source test: `scripts/phase0-invoice-persistence.spec.js`. Remote `DESKTOP-71SJ63M` Playwright **2/2 PASS** (25.31s), with real app JS and real UI, simulated in-memory server records and RPC; confirms source invoice persistence through reload, edit totals, print and retry idempotence after transient RPC failure. Both tests use the operational `pre_invoice` type (no journal posting). Simulated Supabase response and session are explicit; this test **does not establish actual production database write success**.
42 +- Earlier browser test failures were a fixture mistake: the old native form selects are hidden by the unified combobox. This is not evidence of a customer bug. Fixed by dispatching existing DOM change handlers.
43 +- F0-03 remains open for authorized real-account production-safe smoke. All prior Phase 0 issues remain open until accepted; no data migration or security modification approved.