@davoodmehraban89 / Factor-easy / commits / 363a5a7
Fork 0

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

test(login): expect current bootstrap cache version

davoodmehraban89 committed Nov 16, 2026 at 07:26 UTC 363a5a7bee9408a444ceb0e9ffd95be1722105d1
1 file changed +1 -1
scripts/login-connectivity-check.mjs
+1 -1
@@ -9,7 +9,7 @@ assert(html.includes('id="auth-connectivity-result" aria-live="polite"'),'Diagno
9 assert(html.includes('js/login-connectivity.js?v=20261110-login-bootstrap-v6'),'Missing versioned script');
10 assert(html.includes('js/core.js?v=20261110-account-read-v3'),'Production login controls must use new cache version');
11 assert(html.indexOf('<script src="js/login-connectivity.js?v=20261110-login-bootstrap-v6"')<html.indexOf('<script src="js/core.js?v=20261110-account-read-v3"'),'Connectivity handler script must execute before core (not just preload)');
12 -assert(html.includes('js/bootstrap.js?v=20261110-account-read-v3'),'Parallel bootstrap must also be cache-busted');
12 +assert(html.includes('js/bootstrap.js?v=20261116-journal-version-metadata-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');