diff --git a/tests/Avalonia.Smoke/Program.cs b/tests/Avalonia.Smoke/Program.cs index 1de099c..a997fca 100644 --- a/tests/Avalonia.Smoke/Program.cs +++ b/tests/Avalonia.Smoke/Program.cs @@ -1255,7 +1255,8 @@ internal static class Smoke { await CheckVideoAgent(editorVm,editor,dialog,store); return; } Check(!editor.GetVisualDescendants().OfType().Any(c=>c.Content?.ToString()=="手部动作触发后由 AI 确认完成"),"AI confirmation no longer has an opt-out checkbox"); var headers=editor.GetVisualDescendants().OfType().Select(t=>t.Header?.ToString()).ToArray(); - Check(headers.SequenceEqual(new[]{"步骤","区域","全局设置","SOP流程视频","Agent助手"}),"Recipe editor retains hand/AI controls and adds the video assistant without YOLO settings"); + // 区域已并入步骤页,运行参数由运行设置窗口管理。 + Check(headers.SequenceEqual(new[]{"步骤","SOP流程视频","Agent助手"}),"配方编辑器保留步骤、标准视频和 Agent 三个标签页"); Check(editor.FindControl("TargetPartPicker") is null,"Step editor removes YOLO target-class picker"); Check(editorVm.Recipe.Methods.All(m=>!m.StartsWith("object_")&&m!="hand_near_object"),"Only hand and timer trigger methods are offered"); Check(editor.FindControl("CameraExposureInput") is null,"Camera exposure is configured separately from recipes"); @@ -1286,7 +1287,13 @@ internal static class Smoke var settingsWindow=new Window{Content=settingsView,Width=900,Height=720};settingsWindow.Show();await Task.Delay(40); try { - Check(settingsView.GetVisualDescendants().OfType().Count()==2&&settingsView.GetVisualDescendants().OfType().Count()==1,"Runtime settings retain camera, recipe and stride while removing YOLO threshold"); + // 自动登录也有下拉框,按无障碍名称确认相机和配方入口。 + var pickerNames = settingsView.GetVisualDescendants().OfType() + .Select(Avalonia.Automation.AutomationProperties.GetName).ToArray(); + var sliders = settingsView.GetVisualDescendants().OfType().ToArray(); + Check(pickerNames.Contains("相机") && pickerNames.Contains("配方") + && sliders.Length == 1 && sliders[0].Minimum == 1 && sliders[0].Maximum == 10, + "运行设置保留相机、配方和抽帧入口,且没有旧阈值滑杆"); Check(settingsView.GetVisualDescendants().OfType().Any(c=>c.Content?.ToString()=="完成后自动复位") && settingsView.GetVisualDescendants().OfType().Any(),"运行设置包含自动复位和复位延时"); sop.FrameStride=3;sop.AutoResetOnComplete=false;sop.ResetDelaySec=4;