# test_e2e_dvi_ron_discount.ps1 - wrapper peste harness-ul generic pentru testul e2e
# (factura import EUR + TVA DVI in RON + discount financiar + articol + sincronizare).
# NU exercita pasul "Terminat" (scriere in actactan) - vezi antetul .prg pentru motiv.
# Rulare:  powershell -ExecutionPolicy Bypass -File test_e2e_dvi_ron_discount.ps1
$ErrorActionPreference = 'Stop'
$Teste = $PSScriptRoot
& (Join-Path (Split-Path $Teste -Parent) 'vfp_ui_harness.ps1') `
    -TestPrg (Join-Path $Teste 'test_e2e_dvi_ron_discount.prg') `
    -Steps @('nota_goala','dialog_completat','dupa_termin_dialog','articol_adaugat','sincronizat','final') `
    -ShotsDir (Join-Path $Teste 'screenshots_e2e_dvi_ron_discount') `
    -SyncDir (Join-Path $Teste 'uisync_e2e_dvi_ron_discount') `
    -StepTimeoutSec 180 `
    -ReadyTimeoutSec 180