mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-26 22:01:06 -04:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user