Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Honor verified V6 Electron 12-second initialization stability before real CDP SQL navigation and OS clipboard test
davoodmehraban89 committed
Oct 18, 2026 at 06:49 UTC
1806b8b7dd54ee2d8f22d38a04a71fe1d639b7bf
1 file changed
+6
-2
.github/workflows/windows-v6-rebuilt-installed-gui-lab-once.yml
+6
-2
@@ -166,6 +166,11 @@ jobs:
166
const pages=async()=>{const r=await fetch('http://127.0.0.1:'+port+'/json/list',{signal:AbortSignal.timeout(1500)});return r.ok?r.json():[]};
167
const first=await wait(async()=>{const x=await pages();return x.find(y=>y.type==='page'&&y.url?.startsWith(base)&&y.webSocketDebuggerUrl)});
168
conn=await wsConnect(first.webSocketDebuggerUrl);
169
+ report.stage='GUI_STARTUP_SETTLING';
170
+ await sleep(12000);
171
+ const idleReady=await fetch(base+'/api/ready',{signal:AbortSignal.timeout(1800)}).then(x=>x.json()).catch(()=>null);
172
+ assert(electronProcess.exitCode===null&&idleReady?.status==='ready'&&idleReady?.bankAdapter==='disabled','ELECTRON_NOT_STABLE_AFTER_12_SECONDS');
173
+ report.idleStable=true;
174
report.stage='LOCAL_ENTRY';
175
const initial=await conn.evalJs("({path:location.pathname,entry:[...document.querySelectorAll('a[href]')].some(a=>a.getAttribute('href')==='/dashboard')})").catch(()=>null);
176
report.entryInitialLogin=initial?.path==='/login';
@@ -180,7 +185,6 @@ jobs:
185
const navResult=await conn.call('Page.navigate',{url:base+'/integrations'}).catch(()=>null);
186
report.cdpNavigateAccepted=!!navResult&&!navResult.errorText;
187
await sleep(1200);
183
- await conn.evalJs("(()=>{if(location.pathname!='/integrations')location.assign('/integrations');return true})()").catch(()=>null);
188
let last='';
189
await wait(async()=>{
190
const x=await pages();
@@ -224,7 +228,7 @@ jobs:
228
New-Item -ItemType Directory -Force -Path $reportDir | Out-Null
229
node $probe $env:TF_INSTALLED_V6_EXE $reportDir *> (Join-Path $env:RUNNER_TEMP 'private-gui-output.log')
230
$result=Get-Content (Join-Path $reportDir 'private-gui-report.json') -Raw | ConvertFrom-Json
227
- foreach($key in @('integrations','writable','select','copyButton','osClipboard','bankDisabled','entryInitialLogin','entryLinkPresent','rootTargetSeen','loginTargetSeen','dashboardTargetSeen','integrationsTargetSeen','integrationsDomSeen','cdpNavigateAccepted')){
231
+ foreach($key in @('integrations','writable','select','copyButton','osClipboard','bankDisabled','entryInitialLogin','entryLinkPresent','rootTargetSeen','loginTargetSeen','dashboardTargetSeen','integrationsTargetSeen','integrationsDomSeen','cdpNavigateAccepted','idleStable')){
232
Write-Host ("GUI_"+$key+"="+[bool]$result.$key)
233
}
234
Write-Host ("GUI_SQL_HTTP_STATUS="+[int]$result.sqlHttpStatus)