mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-17 08:43:54 -05:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
9816326429
commit
6c691cc23b
1 file changed
+3
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user