# test_diag_controlsource_calificat.ps1 - DIAGNOSTIC: izoleaza copiaza_valoare() de dialog/
# sparge_document, ca sa demonstreze ca garda noua (rand-sursa protejat, adaugata in fix)
# functioneaza CORECT cand tcCamp e literalul 'nract', dar e OCOLITA cand tcCamp vine din
# This.Parent.ControlSource al coloanei Grid1.cNract, pentru ca la runtime ControlSource
# devine "introdc.nract" (calificat cu alias-ul), nu "nract" (asa cum apare la design-time
# in .vcx) - vezi test_diag_controlsource_calificat_log.txt.
$ErrorActionPreference = 'Stop'
$Teste = $PSScriptRoot
& (Join-Path (Split-Path $Teste -Parent) 'vfp_ui_harness.ps1') `
    -TestPrg (Join-Path $Teste 'test_diag_controlsource_calificat.prg') `
    -Steps @('nota_goala','randuri_inserate','final') `
    -ShotsDir (Join-Path $Teste 'screenshots_diag_controlsource_calificat') `
    -SyncDir (Join-Path $Teste 'uisync_diag_controlsource_calificat') `
    -StepTimeoutSec 180 `
    -ReadyTimeoutSec 180
