سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 14:30 UTC
docs: verify hardened Pages Commerce and Quick Create callbacks with 121 of 121 tests
davoodmehraban89 committed
Oct 15, 2026 at 20:58 UTC
64eb58adfdcd35f907fd2afe883fd3d4f2c90b98
1 file changed
+4
PROJECT_STATE.md
+4
@@ -748,3 +748,7 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
748
- **New production browser discrepancy:** TinyFish test/work session [`f95fad51-50a6-41e7-bfd2-338ed706d59a`](https://agent.tinyfish.ai/runs/f95fad51-50a6-41e7-bfd2-338ed706d59a) successfully loaded dashboard and unlimited-license badge but *could not visibly expand* the top-bar `+ ایجاد سریع` menu using click. Together with earlier Commerce tab navigation attempt, this could indicate an actual Pages CSP event-handler binding problem OR browser automation limitations. Neither real product nor contact selector was reached, so F0-02 remains NOT VERIFIED. No production data written.
749
- **Distinct mechanism to test:** GitHub Pages is built by `scripts/build-pages.mjs` which replaces `index.html` inline onclick attributes with generated CSP-safe listeners. Existing #148 Playwright ran **raw development HTML**, which does not validate actual event binding in generated `_site/index.html`. Extend `scripts/pages-artifact.spec.js` with isolated synthetic (not production financial data) real Chromium clicks on Accounting tab, Commerce tab, top-bar Quick Create and Sales Invoice menu; assert actual content/sidebars and alert-free navigation.
750
- **Scope/acceptance:** no license/auth/schema/RLS/roles/migration/financial data writes. If artifact test reproduces, implement a scoped CSP wiring fix + regression + exact PR Quality/Security; if PASS, document automation browser limitation versus unresolved real-account manual verification without changing source needlessly. Proceed only on evidence.
751
+
752
+- **Hardened Pages differential COMPLETED and PASS on first test head `3f42dc353eaf4398e2a5dabcfe0cfd0145f36f6c`:** Quality [`38777091455`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38777091455) SUCCESS; Security [`38777091429`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38777091429) SUCCESS. Static Quality job `116567441821` reports **121/121 Playwright Chromium PASS**, specifically `scripts/pages-artifact.spec.js:147` test `Published Pages CSP event bindings open Commerce and the top-bar sales invoice menu` PASS; all three D1/C8/identity disposable DB jobs PASS. Tested generated CSP-safe button handlers in built `_site` with synthetic license, from Accounting through Commerce, then topbar Quick Create > Sales Invoice, including panel, dropdown and aria state, with no real data/production writes.
753
+- **Triage decision:** no confirmed client-side navigation/CSP wiring defect. Both real signed-in TinyFish runs were unable to navigate to invoice form, but the actual hardened artifact demonstrates button handlers and UI change work in isolated Chromium. Distinguish **agent automation interaction blocker** from production end-user behavior. Do **not** loosen CSP, adjust finance modules, or patch navigation without credible real user repro; F0-02 real-account product/contact selectors remain **NOT VERIFIED**. Keep owner-ISP fresh sign-in acceptance and encrypted backup/live isolated restore OPEN. Rollback for this test-only change: revert PR, no DB changes.
754
+- **Release gate:** await exact final PR head checks and protected-main Pages promotion; no product source change means no functional regression introduced, but tests must remain in main.