diff --git a/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs b/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs index 55eceeae..cda7c814 100644 --- a/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs +++ b/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs @@ -675,6 +675,58 @@ public class CuttingInspectionPanelTests panel.RequestClose(); }); + [Fact] + public void ClearingWhilePlanningCancelsTheRunThenClearsAndReplans() => RunSta(() => + { + using var editor = Editor(); + editor.Show(); + editor.PlateManager.LoadAt(0); + var plate = editor.PlateView.Plate; + editor.OpenCuttingInspection(); + var first = editor.CuttingInspection!; + PumpUntil(() => first.Proposal != null && !first.IsPlanning); + Field