Repository navigation
test(ui-test): choose switcher items without key input - #104
Merged
Merged
Conversation
Activate focused popup items with Enter, and repeat editor switching to cover consecutive activations. Refs #103
Enter sent to the focused popup never arrived on Linux CI: once the custom editor came back, the frame was raised, and the next menu reused a popup window that stayed under it. Swing still reported the list as focused, but X sent the key elsewhere, so the third round trip timed out. Accept the selected item through the popup itself, as Enter does, so neither native focus nor stacking matters. Refs #103
BartvHelvert
force-pushed
the
test/ui-input-readiness
branch
from
November 6, 2026 23:18
4de22ee to
7e15974
Compare
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
The custom-editor switcher sometimes left its intended item highlighted without activating it. Select the item and accept it through the popup itself (
ListPopup.handleSelect), as Enter does, rather than with a click or key. A first version confirmed with a Robot Enter; on Linux CI the frame was raised over a reused popup window, Swing still reported the list as focused, and the key never reached it. Exercise three text/custom-editor round trips and retain the default-editor submenu check.Fixes #103
An earlier version of this PR also added waits to the snippet scenario for #102. On CI those waits timed out on both Ubuntu and Windows before any placeholder was selected: Enter never inserted the snippet, because the lookup kept an item from a completion request the backend had dropped. That change was removed from this branch; #111 fixes #102. No production behavior changes.
How it was tested
handleSelect, the switcher test passed three separate times, covering three round trips plus changing the default editor.740ddeacaddresses onmaster.git diff --checkpassed.Checklist
A new feature has a UI test.Existing UI regression strengthened and run; test-only change.No production behavior change.docs/is updated where behaviour changed,docs/status.mdespecially.Third-party material keeps its notice and is listed inNone added.NOTICE.md.