test(desktop): establish keyboard focus before saved-nest Enter

Fix the focus-sensitive failure in HighlightedNestShowsItsPlatesAndDrawings_AndEnterOpensIt from GitHub run 39042902952. Explicitly focus the nest grid and assert it owns focus before sending Enter. Production keyboard handling and all existing open, cancel, and missing-archive assertions remain unchanged.
This commit is contained in:
aj committed 2026-10-17 11:32:07 -04:00
1 parent b324baa69a
commit 0cef0ae297
1 file changed
+3
@@ -48,6 +48,9 @@ public class SavedNestsFormTests
"the second nest's plates");
Assert.Equal(1, drawings.Rows[0].Cells["Nested"].Value);
// Selecting a row does not guarantee keyboard focus after pumping UI events.
Assert.True(nests.Focus());
Assert.True(nests.Focused);
Assert.True(ProcessKey(form, Keys.Enter));
Assert.Equal(DialogResult.OK, form.DialogResult);
Assert.Equal(second.Id, form.SelectedId);