更新视觉界面冒烟检查以覆盖当前设置入口
This commit is contained in:
parent
40d36f5e2a
commit
3d2491a6dc
@ -1255,7 +1255,8 @@ internal static class Smoke
|
||||
{ await CheckVideoAgent(editorVm,editor,dialog,store); return; }
|
||||
Check(!editor.GetVisualDescendants().OfType<CheckBox>().Any(c=>c.Content?.ToString()=="手部动作触发后由 AI 确认完成"),"AI confirmation no longer has an opt-out checkbox");
|
||||
var headers=editor.GetVisualDescendants().OfType<TabItem>().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<ComboBox>("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<TextBox>("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<ComboBox>().Count()==2&&settingsView.GetVisualDescendants().OfType<Slider>().Count()==1,"Runtime settings retain camera, recipe and stride while removing YOLO threshold");
|
||||
// 自动登录也有下拉框,按无障碍名称确认相机和配方入口。
|
||||
var pickerNames = settingsView.GetVisualDescendants().OfType<ComboBox>()
|
||||
.Select(Avalonia.Automation.AutomationProperties.GetName).ToArray();
|
||||
var sliders = settingsView.GetVisualDescendants().OfType<Slider>().ToArray();
|
||||
Check(pickerNames.Contains("相机") && pickerNames.Contains("配方")
|
||||
&& sliders.Length == 1 && sliders[0].Minimum == 1 && sliders[0].Maximum == 10,
|
||||
"运行设置保留相机、配方和抽帧入口,且没有旧阈值滑杆");
|
||||
Check(settingsView.GetVisualDescendants().OfType<CheckBox>().Any(c=>c.Content?.ToString()=="完成后自动复位")
|
||||
&& settingsView.GetVisualDescendants().OfType<NumericUpDown>().Any(),"运行设置包含自动复位和复位延时");
|
||||
sop.FrameStride=3;sop.AutoResetOnComplete=false;sop.ResetDelaySec=4;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user