From 3d2491a6dce901908ff6879e5796ac64f72b2f38 Mon Sep 17 00:00:00 2001 From: wanglei Date: Mon, 30 Nov 2026 11:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=A7=86=E8=A7=89=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=86=92=E7=83=9F=E6=A3=80=E6=9F=A5=E4=BB=A5=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E5=BD=93=E5=89=8D=E8=AE=BE=E7=BD=AE=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Avalonia.Smoke/Program.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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;