Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

Re-run native installed Electron CDP on isolated Chrome userData, classifying only safe failure stage

davoodmehraban89 committed Oct 26, 2026 at 08:23 UTC 03ffdf28e51756c165d110378181d97e4bdabe9e
1 file changed +10 -1
.github/workflows/v7-nonfinal-windows-nsis-acceptance-once.yml
+10 -1
@@ -161,7 +161,16 @@ jobs:
161 $nativeData=Join-Path $env:RUNNER_TEMP 'v7-native-cdp-synthetic'
162 New-Item -ItemType Directory -Path $nativeData -Force | Out-Null
163 & node $nativeTest $program[0].FullName $nativeData
164 - if($LASTEXITCODE -ne 0){throw 'REAL_INSTALLED_ELECTRON_CDP_UI_ACCEPTANCE_FAILED'}
164 + if($LASTEXITCODE -ne 0){
165 + $reportFile=Join-Path $nativeData 'v7-native-cdp-qa.json'
166 + if(Test-Path -LiteralPath $reportFile){
167 + $failedNative=Get-Content -LiteralPath $reportFile -Raw | ConvertFrom-Json
168 + Write-Host ('V7_CDP_SAFE_FAILED_STAGE='+([string]$failedNative.stage -replace '[^A-Za-z0-9_]',''))
169 + Write-Host ('V7_CDP_LAUNCHER_EARLY_EXIT='+[bool]$failedNative.launcherExited)
170 + Write-Host ('V7_CDP_PAGES_VERIFIED='+[int]@($failedNative.pages).Count)
171 + }
172 + throw 'REAL_INSTALLED_ELECTRON_CDP_UI_ACCEPTANCE_FAILED'
173 + }
174 $nativeResult=Get-Content -LiteralPath (Join-Path $nativeData 'v7-native-cdp-qa.json') -Raw | ConvertFrom-Json
175 if($nativeResult.status -ne 'PASS' -or $nativeResult.pages.Count -ne 5 -or
176 !$nativeResult.actualLocalClick -or !$nativeResult.bankDisabled -or !$nativeResult.screenshot){