@davoodmehraban89 / Factor-easy / commits / d1967c4
Fork 0

سامانه صدور فاکتور و حسابداری

test(login): compare execution tags rather than early resource preload tags

davoodmehraban89 committed Oct 12, 2026 at 20:34 UTC d1967c43e5a528bed7602ba69443b26328eb148a
1 file changed +1 -1
scripts/login-connectivity-check.mjs
+1 -1
@@ -8,7 +8,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=20261012-login-wiring-v3'),'Production login controls must use new cache version');
11 -assert(html.indexOf('js/login-connectivity.js?v=20261011-login-triage-v1')<html.indexOf('js/core.js?v=20261012-login-wiring-v3'),'Connectivity handler must be defined before controls are enabled');
11 +assert(html.indexOf('<script src="js/login-connectivity.js?v=20261011-login-triage-v1"')<html.indexOf('<script src="js/core.js?v=20261012-login-wiring-v3"'),'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');
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');