سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 03:00 UTC
test(login): update cache invariant and require explicit login readiness gate
davoodmehraban89 committed
Oct 12, 2026 at 19:41 UTC
357cd65f51066e9e7fc34d099627686ed8d3b9bb
1 file changed
+4
-1
scripts/login-connectivity-check.mjs
+4
-1
@@ -7,7 +7,10 @@ assert(html.includes('id="auth-connectivity-check"'),'Missing diagnostic action'
7
assert(html.includes('id="auth-connectivity-result"'),'Missing accessible result');
8
assert(html.includes('id="auth-connectivity-result" aria-live="polite"'),'Diagnostic must announce updates without adding a conflicting global role=status');
9
assert(html.includes('js/login-connectivity.js?v=20261011-login-triage-v1'),'Missing versioned script');
10
-assert(html.includes('js/core.js?v=20261011-login-triage-v1'),'Core.js cache version not bumped');
10
+assert(html.includes('js/core.js?v=20261012-login-ready-v2'),'New login core must have a distinct production cache version');
11
+assert(html.includes('js/bootstrap.js?v=20261012-login-ready-v2'),'Parallel bootstrap must also be cache-busted');
12
+assert(html.includes('id="auth-login-button"')&&html.includes('id="auth-login-status"'),'Login control requires real readiness/progress feedback');
13
+assert(core.includes('window.FinoraAppAssetsReady'),'Authenticated workspace must remain gated until all module scripts settle');
14
assert(core.includes('isAuthNetworkError(err)'),'Network error diagnostic not wired');
15
assert(!core.includes('اتصال اینترنت/VPN را بررسی کنید'),'Misleading VPN-only error text remains');
16
assert(diagnostic.includes("'/auth/v1/health'"),'Must test the real GoTrue health path');