سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 10:30 UTC
test: align cache assertions with new organzation-aware startup versions
davoodmehraban89 committed
Oct 14, 2026 at 23:52 UTC
d2274aa02e8581517fe42b9ba3c74bb2ba13fd84
1 file changed
+4
-3
scripts/login-connectivity-check.mjs
+4
-3
@@ -7,11 +7,12 @@ 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=20261012-data-probe-v3'),'Missing versioned script');
10
-assert(html.includes('js/core.js?v=20261013-static-pages-guard-v2'),'Production login controls must use new cache version');
11
-assert(html.indexOf('<script src="js/login-connectivity.js?v=20261012-data-probe-v3"')<html.indexOf('<script src="js/core.js?v=20261013-static-pages-guard-v2"'),'Connectivity handler script must execute before core (not just preload)');
12
-assert(html.includes('js/bootstrap.js?v=20261013-ordered-bundle-v1'),'Parallel bootstrap must also be cache-busted');
10
+assert(html.includes('js/core.js?v=20261014-org-license-readiness-v1'),'Production login controls must use new cache version');
11
+assert(html.indexOf('<script src="js/login-connectivity.js?v=20261012-data-probe-v3"')<html.indexOf('<script src="js/core.js?v=20261014-org-license-readiness-v1"'),'Connectivity handler script must execute before core (not just preload)');
12
+assert(html.includes('js/bootstrap.js?v=20261014-org-license-readiness-v1'),'Parallel bootstrap must also be cache-busted');
13
assert(html.includes('id="auth-login-button"')&&html.includes('id="auth-login-status"'),'Login control requires real readiness/progress feedback');
14
assert(core.includes('window.FinoraAppAssetsReady'),'Authenticated workspace must remain gated until all module scripts settle');
15
+assert(core.includes('window.FinoraOrganizationContextReady')&&core.includes('organizationAccount'),'Profile and license lookup must wait for the organization account adapter');
16
assert(core.includes('FinoraLoginActionsBound'),'Production CSP action readiness must require installed event listeners');
17
assert(core.includes('FINORA_LOGIN_READ_TIMEOUT'),'Restored-session reads must have bounded wait and visible fallback');
18
assert(core.includes('isAuthNetworkError(err)'),'Network error diagnostic not wired');