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

Run same installed Windows V7 branch EXE through real Electron CDP renderer, local user click and bank-disabled UI before NSIS uninstall

davoodmehraban89 committed Oct 26, 2026 at 08:16 UTC a1dc045f4207ac902de9c6ebd567ec5d5b3b8fd2
1 file changed +15
.github/workflows/v7-nonfinal-windows-nsis-acceptance-once.yml
+15
@@ -147,6 +147,21 @@ jobs:
147 }finally{
148 if($desktop -and !$desktop.HasExited){& taskkill.exe /PID $desktop.Id /T /F *> $null}
149 }
150 + # Independently test the real installed Electron renderer and CDP
151 + # with isolated synthetic local database and no external bank access.
152 + $nativeTest=Join-Path $pwd 'qa/windows/v7-installed-native-cdp-smoke.mjs'
153 + & node --check $nativeTest
154 + if($LASTEXITCODE -ne 0){throw 'NATIVE_ELECTRON_CDP_TEST_SCRIPT_SYNTAX_FAILED'}
155 + $nativeData=Join-Path $env:RUNNER_TEMP 'v7-native-cdp-synthetic'
156 + New-Item -ItemType Directory -Path $nativeData -Force | Out-Null
157 + & node $nativeTest $program[0].FullName $nativeData
158 + if($LASTEXITCODE -ne 0){throw 'REAL_INSTALLED_ELECTRON_CDP_UI_ACCEPTANCE_FAILED'}
159 + $nativeResult=Get-Content -LiteralPath (Join-Path $nativeData 'v7-native-cdp-qa.json') -Raw | ConvertFrom-Json
160 + if($nativeResult.status -ne 'PASS' -or $nativeResult.pages.Count -ne 5 -or
161 + !$nativeResult.actualLocalClick -or !$nativeResult.bankDisabled -or !$nativeResult.screenshot){
162 + throw 'REAL_INSTALLED_ELECTRON_CDP_ASSERTIONS_NOT_ALL_VERIFIED'
163 + }
164 + Write-Host 'GATE_PASS_SAME_INSTALLED_V7_NONFINAL_NATIVE_ELECTRON_CDP_LOGIN_FIVE_ROUTES_SCREENSHOT'
165 $un=@(Get-ChildItem -LiteralPath $install -Recurse -File -Filter 'Uninstall*.exe' -ErrorAction SilentlyContinue)
166 if($un.Count -ne 1){throw 'NSIS_UNINSTALLER_NOT_FOUND'}
167 $p=Start-Process -FilePath $un[0].FullName -ArgumentList '/S' -PassThru