Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
ci: inspect installed Electron GUI with CDP, copy button assertions and private screenshot
davoodmehraban89 committed
Oct 16, 2026 at 21:45 UTC
98fb3657d11647f1e177f60e0bcb0ad083b30a96
1 file changed
+10
.github/workflows/windows-vm-treasury-lab.yml
+10
@@ -125,6 +125,16 @@ jobs:
125
shell: pwsh
126
run: |
127
& "$env:GITHUB_WORKSPACE/scripts/windows-vm-treasury-install-smoke.ps1" -SourceRoot "$env:LAB_SOURCE"
128
+ - name: Inspect real installed Electron browser window and query-copy UI through CDP
129
+ if: steps.native.outputs.buildable == 'true'
130
+ shell: pwsh
131
+ run: |
132
+ $folder=Join-Path $env:RUNNER_TEMP 'TreasuryFlow-VM-Installed'
133
+ $app=@(Get-ChildItem $folder -File -Recurse -Filter 'TreasuryFlow.exe' -ErrorAction SilentlyContinue)
134
+ if($app.Count -ne 1){throw 'REAL_INSTALLED_ELECTRON_EXE_MISSING'}
135
+ $output=Join-Path $env:RUNNER_TEMP 'treasuryflow-vm-evidence'
136
+ node "$env:GITHUB_WORKSPACE/qa/windows/electron-native-gui-smoke.mjs" $app[0].FullName $output
137
+ if($LASTEXITCODE -ne 0){throw 'INSTALLED_ELECTRON_GUI_CDP_FAILED'}
138
- name: Upload private Windows artifacts and non-sensitive evidence
139
if: always()
140
uses: actions/upload-artifact@v4