# test_termin_partener.ps1 - wrapper peste harness-ul generic pentru scenariul rundei 22
# (COMUN\clase\ointroduceri.vcx, import_nota): inainte_de_do_termin fara sincronizare
# automata (garda lSyncPending/cmesajsync) + sparge_document pastreaza partenerul debit
# manual pe randurile S la regenerare. Rulare:
#   powershell -ExecutionPolicy Bypass -File test_termin_partener.ps1
$ErrorActionPreference = 'Stop'
$Teste = $PSScriptRoot
& (Join-Path (Split-Path $Teste -Parent) 'vfp_ui_harness.ps1') `
    -TestPrg (Join-Path $Teste 'test_termin_partener.prg') `
    -Steps @('doc_principal','articole_adaugate','sync1_2Srows','partener_manual_sync2','lSyncPending_blocheaza','final_garda_noua') `
    -ShotsDir (Join-Path $Teste 'screenshots_termin_partener') `
    -SyncDir (Join-Path $Teste 'uisync_termin_partener') `
    -StepTimeoutSec 180 `
    -ReadyTimeoutSec 180
