Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Retry Electron integrations navigation and classify CDP target state without leaking private page contents
davoodmehraban89 committed
Oct 18, 2026 at 06:38 UTC
f08624e0db84ecc561bcc317d7c13f258f3a6e1d
1 file changed
+10
-4
.github/workflows/windows-v6-rebuilt-installed-gui-lab-once.yml
+10
-4
@@ -177,12 +177,18 @@ jobs:
177
report.stage='SQL_PAGE';
178
const http=await fetch(base+'/integrations',{signal:AbortSignal.timeout(10000)}).catch(()=>null);
179
report.sqlHttpStatus=http?.status||0;
180
- await conn.call('Page.navigate',{url:base+'/integrations'}).catch(()=>null);
180
+ const navResult=await conn.call('Page.navigate',{url:base+'/integrations'}).catch(()=>null);
181
+ report.cdpNavigateAccepted=!!navResult&&!navResult.errorText;
182
+ await sleep(1200);
183
+ await conn.evalJs("(()=>{if(location.pathname!='/integrations')location.assign('/integrations');return true})()").catch(()=>null);
184
let last='';
185
await wait(async()=>{
186
const x=await pages();
184
- if(x.some(z=>z.type==='page'&&z.url?.startsWith(base+'/login')))report.loginTargetSeen=true;
185
- const p=x.find(z=>z.type==='page'&&z.url?.startsWith(base+'/integrations')&&z.webSocketDebuggerUrl);
187
+ const local=x.filter(z=>z.type==='page'&&z.url?.startsWith(base));
188
+ if(local.some(z=>z.url===base+'/'||z.url===base))report.rootTargetSeen=true;
189
+ if(local.some(z=>z.url?.startsWith(base+'/login')))report.loginTargetSeen=true;
190
+ if(local.some(z=>z.url?.startsWith(base+'/dashboard')))report.dashboardTargetSeen=true;
191
+ const p=local.find(z=>z.url?.startsWith(base+'/integrations')&&z.webSocketDebuggerUrl);
192
if(p)report.integrationsTargetSeen=true;
193
if(!p)return false;
194
if(p.webSocketDebuggerUrl!==last){try{conn.ws.close()}catch{}conn=await wsConnect(p.webSocketDebuggerUrl);last=p.webSocketDebuggerUrl}
@@ -218,7 +224,7 @@ jobs:
224
New-Item -ItemType Directory -Force -Path $reportDir | Out-Null
225
node $probe $env:TF_INSTALLED_V6_EXE $reportDir *> (Join-Path $env:RUNNER_TEMP 'private-gui-output.log')
226
$result=Get-Content (Join-Path $reportDir 'private-gui-report.json') -Raw | ConvertFrom-Json
221
- foreach($key in @('integrations','writable','select','copyButton','osClipboard','bankDisabled','entryInitialLogin','entryLinkPresent','loginTargetSeen','integrationsTargetSeen','integrationsDomSeen')){
227
+ foreach($key in @('integrations','writable','select','copyButton','osClipboard','bankDisabled','entryInitialLogin','entryLinkPresent','rootTargetSeen','loginTargetSeen','dashboardTargetSeen','integrationsTargetSeen','integrationsDomSeen','cdpNavigateAccepted')){
228
Write-Host ("GUI_"+$key+"="+[bool]$result.$key)
229
}
230
Write-Host ("GUI_SQL_HTTP_STATUS="+[int]$result.sqlHttpStatus)