From 6c691cc23b591a366131617cfe65b19e7ba59c42 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Fri, 16 Oct 2026 15:30:31 -0400 Subject: [PATCH] test(desktop): block the all-plates panel test on overlap Since 5.2 a locked program's own rapid crossing is a fixed-lead warning on an UNVERIFIED plate, so it no longer makes the panel's "Can't apply" case. The blocked plate now holds overlapping parts, a hard block, and the test checks the same navigation and no-partial-Apply behaviour. Co-Authored-By: Claude Opus 5.5 --- .../Forms/CuttingInspectionPanelTests.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs b/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs index ed3eac13..48ffbb03 100644 --- a/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs +++ b/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs @@ -159,11 +159,9 @@ public class CuttingInspectionPanelTests using var editor = Editor(); var second = editor.Nest.Plates[^1]; // Fill the managed empty sentinel; a new one is appended. second.Size = new OpenNest.Geometry.Size(100, 100); - var locked = Square("locked", 1); - var crossing = (OpenNest.CNC.Program)locked.Program.Clone(); - crossing.MoveTo(5, 5); - Assert.True(locked.RestoreLeadInProgram(crossing, true)); - second.Parts.Add(locked); + // Overlapping material blocks the plate (a locked program's own crossing only warns). + second.Parts.Add(Square("first", 1)); + second.Parts.Add(Square("second", 5)); editor.Show(); editor.PlateManager.LoadAt(editor.Nest.Plates.Count - 1); // Different empty sentinel. var original = editor.PlateView.Plate;