سامانه صدور فاکتور و حسابداری
test: align independent diagnostic readiness and record integrated verification
JVK committed
Nov 10, 2026 at 12:32 UTC
58314430a09c5c1513f6ed7a2e6e830a9b8417e8
5 files changed
+11
-7
PROJECT_STATE.md
+1
@@ -242,3 +242,4 @@ Owner requests layer-by-layer click/functional testing of all controls and compa
242
- Scoped navigation repair on separate branch fromcurrentmain: move existing licensed launcher to the topbar actions, keep access management at Settings -> users/access/capacity and remove the duplicate footer access injection. Preserve exact eight-module rail, licensing/authorization, invitation/capacity callbacks and logout behavior; no financial/server changes. Canonical reference image inspected. Verify responsive placement, actual control clicks, permission refresh and generatedPages; publish protectedPR separately fromWP1.
243
- Financial continuation remains onPR195, publishedcandidate61092e4 withreadgraphprerequisite; preceding4149d50 allQuality/Security/WP1CI passed. It is not merged into this UI repair or production. WP1 stillincomplete; detailed phase state is onthatbranch.
244
- 2026-11-10 local checkpoint after urgent login work resumed: launcher moved to responsive topbar; organization access moved to a guarded Settings card with full users/access/capacity label. Existing submenu, exact eight-module rail, late-bound invitation/capacity wrappers and authority checks preserved. Three viewport cases RED before fix ->GREEN. All9 workspace cases PASS in source and generatedPages;51static/server/release commands PASS. Root visually inspected synthetic desktop/mobile screenshots. See docs/NAVIGATION_UTILITIES_2026-11-10.md. Full regression after integrating loginPR196, protectedCI/release and live readback remain pending; no production/data change claimed.
245
+- Integrated navigation checkpoint: rebased onto urgent-login main4382e83 without changing the tested application tree. PR196 local220/220 and exact-head Quality42814901014/Security42814901043 PASS; protected merge completed, gated production verification tracked inPR196. Navigation prior candidate d24f85c Quality42815227230/Security42815227293 PASS. Local integrated run222/223 exposed an old timing assumption: diagnostic readiness now precedes login handlers. Added an explicit bounded login-button readiness assertion while preserving all early-ERP/actual-click assertions;5/5 repeats PASS. Final navigation exact-head CI/release ledger isPR197. No final independent review available due provider quota; root reviewed code and synthetic desktop/mobile captures. Remaining PR193 account/member read feedback, authenticated owner acceptance and financialWP1 work remain distinct.
docs/EXECUTION_STATUS.md
+5
-4
@@ -8,11 +8,12 @@
8
9
|کار|وضعیت|شواهد / اقدام بعدی|
10
|---|---|---|
11
-|ورود با دکمههای غیرفعال|اصلاح و تست متمرکز ۶۲/۶۲ قبول؛ انتشار در انتظار بررسی کامل|[گزارش رخداد](LOGIN_BOOTSTRAP_INCIDENT_2026-11-10.md)؛ پذیرش حساب و اینترنت مالک هنوز تأیید نشده|
12
-|جابهجایی ماژولها و دسترسیها کنار خروج|برنامه ثبت شده؛ بعد از رفع ورود|انتقال انتخابگر به نوار بالا و مدیریت دسترسی به تنظیمات؛ هنوز منتشر نشده|
11
+|ورود با دکمههای غیرفعال|اصلاح ادغام شد؛ ۲۲۰/۲۲۰ آزمون کامل و بررسیهای PR196 موفق|[گزارش رخداد](LOGIN_BOOTSTRAP_INCIDENT_2026-11-10.md)؛ مرجع وضعیت انتشار و بازخوانی سایت: [PR196](https://github.com/davoodmehraban89/Factor-easy/pull/196)؛ پذیرش حساب و اینترنت مالک هنوز تأیید نشده|
12
+|جابهجایی ماژولها و دسترسیها کنار خروج|پیادهسازی و بررسی؛ انتخابگر در نوار بالا، دسترسی در تنظیمات|۹/۹ source و ۹/۹ Pages؛ [گزارش](NAVIGATION_UTILITIES_2026-11-10.md) و مرجع CI/انتشار [PR197](https://github.com/davoodmehraban89/Factor-easy/pull/197)|
13
|WP1 سختسازی مالی|کاندیدای جداگانه؛ روی سایت فعال نشده|PR195، نسخه61092e4: Quality41957583573 / Security41957583565 / WP141957583675 موفق؛ اتصال امن کلاینت و گیتهای انتشار باقی است|
14
-|تفکیک نوع سند خرید/فروش|پیادهسازی؛ تست جدید source/Pages قبول|فروش: فروش/پیشفاکتور/صورتوضعیت؛ خرید: خرید؛ ۲۱۰/۲۱۱ اجرای کامل؛ یک انتظار کش قدیمی اصلاح شد؛ اجرای نهایی در PR191|
15
-|سازمان، درخواستها و مدیریت اعضا|پیادهسازی؛ تست Pages قبول|ورودی تنظیمات، سازمان در انتخابگر، دعوت/ظرفیت موجود؛ شواهد زنده انتشار و SHA در PR191|
14
+|تفکیک نوع سند خرید/فروش|منتشر در PR191؛ آزمونهای مجدد در مجموعهٔ ۲۲۰ موفق|فروش: فروش/پیشفاکتور/صورتوضعیت؛ خرید: خرید؛ اسناد قبلی حفظ میشوند|
15
+|سازمان، درخواستها و مدیریت اعضا|مسیرها در PR191 منتشر شدند؛ جایگذاری جدید در PR197|پنجرهٔ مدیریت در خطای خواندن هنوز نیازمند PR193 است؛ نشر آن با جایگذاری منو یکی نیست|
16
+|خطاهای دریافت حساب و بارگذاری پنل کاربران|PR193 باز؛ اجرا و انتشار نهایی باقی است|کاندیدا۱۹source/۱۹Pages موفق؛ آزمون کامل و تطبیق با اصلاحات جدید قبل از انتشار|
17
|اصلاح شرکت|منتشر؛ بازکردن/انصراف واقعی قبول|ذخیرهٔ تغییر شرکت در حساب واقعی از این پذیرش نتیجه نمیشود|
18
|تعیین رمز مدیر کل|منتشر؛ تست مصنوعی موفق|آزمون واقعی پنجره با نقش مدیر کل و حساب کنترلشده باقی است|
19
|منوهای فازA|منتشر؛۲۰۳تست نسخهٔ مربوط موفق|پذیرش همهٔ نقشها و دادهها جداست|
docs/LOGIN_BOOTSTRAP_INCIDENT_2026-11-10.md
+2
-2
@@ -23,7 +23,7 @@ The reproducible defect is dependency coupling: initial HTML deliberately disabl
23
- All 51 existing pre-browser/static/server/release commands passed before final review; syntax, diagnostic, static quality and release safety were rerun successfully after review corrections.
24
- Independent initial review found three P2 defects in the candidate (hidden CSS media scope, callback fragment loss, unversioned early probe). All three corrected and covered by browser assertions. Follow-up independent review could not run because its provider quota was exhausted; no independent final approval claimed.
25
- Earlier focused failures remain accounted for: fixed retained handler failure classification; updated fixture expectations for report version/probed core; replaced VM fixture with browser fail-closed private-key check. A Pages diagnostic fixture matched only a query-free Auth URL and left REST live; both endpoints are now explicitly mocked while retaining the 2.5-second limit and early-login assertions.
26
-- Full canonical browser suite and exact-head remote CI/release: pending at this documentation checkpoint. Deployment identifiers and public artifact comparison belong in the linked release PR after they actually exist.
26
+- Full canonical local browser suite **220/220 PASS** (4.8m). PR196 head `f34f84b818c08aa6960f048bab66fcf0a7a21b98`: Quality42814901014 and Security42814901043 SUCCESS, including all3 disposable DB jobs. Protected merge: `4382e83a73bc3636d53273f07f0eaaa4911b5879`. Exact-main CI, gated deployment and public readback are recorded in the live [PR196 release ledger](https://github.com/davoodmehraban89/Factor-easy/pull/196); merge alone does not prove deployment.
27
28
CI infrastructure: run42814653548 passed all pre-browser checks but failed installing the pinned Playwright1.55 on the newly migrated ubuntu-latest (26.04). The browser/static job now pins supported Ubuntu24.04; no test/gate removed. The initial full local run lost its prior-turn HTTP server and is excluded (connection refused); rerun owns its HTTP server lifetime.
29
@@ -31,6 +31,6 @@ CI infrastructure: run42814653548 passed all pre-browser checks but failed insta
31
32
Owner-device/ISP and real-account acceptance remain unverified. TinyFish is connected, but its profile listing currently records no signed-in factoreasy.ir session. Do not collect passwords in chat or infer authenticated acceptance from public/bootstrap tests.
33
34
-After urgent release: move the module launcher above Logout into the topbar, and access administration below Logout into a discoverable authorized Settings entry. That navigation task is still planned, not implemented. Resume the separate WP1 graph-to-client adapter afterward, preserving financial release gates. PR193 addresses different account-hydration errors and remains separate.
34
+After urgent release: move the module launcher above Logout into the topbar, and access administration below Logout into a discoverable authorized Settings entry. The navigation implementation and synthetic verification are now in [PR197](https://github.com/davoodmehraban89/Factor-easy/pull/197), separately gated for release. Resume the separate WP1 graph-to-client adapter afterward, preserving financial release gates. PR193 addresses different account-hydration errors and remains separate.
35
36
Rollback: revert this frontend/build PR through normal protected release. No database rollback is involved.
docs/NAVIGATION_UTILITIES_2026-11-10.md
+1
-1
@@ -14,4 +14,4 @@
14
- [دسکتاپ](audits/2026-11-10/navigation-desktop.png)
15
- [موبایل](audits/2026-11-10/navigation-mobile.png)
16
17
-اجرای کامل regression پس از ترکیب با اصلاح فوری ورود، بررسی CI، انتشار محافظتشده و بازخوانی نسخهٔ سایت هنوز در انتظار است. نتیجهٔ نهایی و شناسهٔ انتشار در PR مربوط ثبت میشود. این تغییر بهمعنای تکمیل WP1 یا پذیرش همهٔ کنترلهای برنامه نیست.
17
+پس از ترکیب با اصلاح فوری ورود، اجرای کامل محلی۲۲۲قبول/۱شکست داشت: تست قدیمی آمادگی مستقل بررسی اتصال را با آمادگی ورود یکی فرض میکرد. انتظار صریح آمادگی دکمهٔ ورود اضافه شد؛ محدودیت زمانی و تمام آزمونهای کلیک و عدم انتظار برای ERP حفظ شد. پنج اجرای متوالی سناریوی اصلاحشده موفق بود. CI نسخهٔ ترکیبی قبلیd24f85c نیز موفق بود؛ نتیجهٔ نهایی نسخهٔ منتشرشونده، انتشار محافظتشده و بازخوانی سایت در [PR197](https://github.com/davoodmehraban89/Factor-easy/pull/197) ثبت میشود. این تغییر بهمعنای تکمیل WP1 یا پذیرش همهٔ کنترلهای برنامه نیست.
scripts/pages-artifact.spec.js
+2
@@ -44,6 +44,8 @@ test('Production CSP login and connectivity actions work while later ERP JS is s
44
// The actual hardened Pages output removes inline onclick attributes.
45
await page.goto(base,{waitUntil:'commit'});
46
await expect(page.locator('#auth-connectivity-check')).toBeEnabled({timeout:4000});
47
+ // Diagnostics is intentionally independent and can be ready before login handlers.
48
+ await expect(page.locator('#auth-login-button')).toBeEnabled({timeout:4000});
49
expect(await page.evaluate(()=>window.FinoraLoginActionsBound)).toBe(true);
50
expect(delayedModuleFinished,'Login actions must be wired before slow ERP scripts').toBe(false);
51
await page.locator('#auth-connectivity-check').click();