سامانه صدور فاکتور و حسابداری
test(startup): require fresh auth and bundle loader asset versions
davoodmehraban89 committed
Oct 13, 2026 at 01:04 UTC
bf025ee210c30a51cbc9ba520bd75b7fe99ce272
1 file changed
+3
-3
scripts/login-connectivity-check.mjs
+3
-3
@@ -7,9 +7,9 @@ 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=20261012-bootstrap-stages-v4'),'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=20261012-bootstrap-stages-v4"'),'Connectivity handler script must execute before core (not just preload)');
12
-assert(html.includes('js/bootstrap.js?v=20261012-login-ready-v2'),'Parallel bootstrap must also be cache-busted');
10
+assert(html.includes('js/core.js?v=20261013-asset-failclosed-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=20261013-asset-failclosed-v1"'),'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');
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('FinoraLoginActionsBound'),'Production CSP action readiness must require installed event listeners');