@davoodmehraban89 / Factor-easy / commits / 2698bb7
Fork 0

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

test(real-stack): bound login wait and capture pending hydration stage diagnostics

davoodmehraban89 committed Oct 18, 2026 at 22:56 UTC 2698bb7759ac07b50a887ddd0edb5b7464e0be7c
1 file changed +5 -1
scripts/stage22-real-stack.mjs
+5 -1
@@ -102,7 +102,11 @@ try{
102 loginMessage:document.getElementById('auth-login-status')?.textContent?.slice(0,180),
103 hasCurrentUser:typeof currentUser!=='undefined'&&!!currentUser,
104 authSession:!!(await sb.auth.getSession()).data.session,
105 - orgContextReady:!!window.FinoraOrganizationContextReady
105 + orgContextReady:!!window.FinoraOrganizationContextReady,
106 + pendingStages:typeof finoraPendingLoginStages==='function'?finoraPendingLoginStages():[],
107 + syncPending:typeof syncPending!=='undefined'?syncPending:null,
108 + syncRunning:typeof syncRunning!=='undefined'?syncRunning:null,
109 + lastAuthState:document.getElementById('auth-screen')?.style.display
110 }));
111 const orgCheck=await page.evaluate(async()=>{
112 try{