From 38324628b0c8302f4348368328b0e7dee7a79bbb Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Wed, 30 Sep 2026 01:39:26 -0400 Subject: [PATCH] test(editor): prove per-operation highlighting with a status sentinel The reorder event snapshot could previously show the reverse pass's stale timeout label. Set a sentinel before each click so the ProgramChanged handler can only observe the label applied by the current operation's highlighting pass. --- OpenNest.WinForms.Tests/Controls/ProgramEditorControlTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenNest.WinForms.Tests/Controls/ProgramEditorControlTests.cs b/OpenNest.WinForms.Tests/Controls/ProgramEditorControlTests.cs index a37773b..56d91bc 100644 --- a/OpenNest.WinForms.Tests/Controls/ProgramEditorControlTests.cs +++ b/OpenNest.WinForms.Tests/Controls/ProgramEditorControlTests.cs @@ -68,6 +68,9 @@ public class ProgramEditorControlTests var oldPreview = preview.Entities.ToArray(); beforeClick = oldPreview; + // Overwrite any stale indication so the event snapshot can only show the label + // applied by THIS operation's highlighting pass. + status.Text = ""; GetControl