Skip to content

test(ui-test): choose switcher items without key input - #104

Merged
BartvHelvert merged 2 commits into
masterfrom
test/ui-input-readiness
Nov 7, 2026
Merged

BartvHelvert merged 2 commits into
masterfrom
test/ui-input-readiness

Conversation

@BartvHelvert

@BartvHelvert BartvHelvert commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

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

  • WSL Ubuntu-24.04 / Xvfb, IU-263.7307.44: after switching to handleSelect, the switcher test passed three separate times, covering three round trips plus changing the default editor.
  • PR CI run 42297611940: the switcher test passed on Ubuntu and Windows. That run's other failures were the snippet scenario (since removed) and the Windows custom-document undo test, which 740ddeac addresses on master.
  • Windows was not run locally.
  • git diff --check passed.

Checklist

  • Nothing is special-cased for one extension.
  • A new feature has a UI test. Existing UI regression strengthened and run; test-only change.
  • No internal, override-only, obsolete or deprecated platform API.
  • docs/ is updated where behaviour changed, docs/status.md especially. No production behavior change.
  • Third-party material keeps its notice and is listed in NOTICE.md. None added.

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
BartvHelvert force-pushed the test/ui-input-readiness branch from 4de22ee to 7e15974 Compare November 6, 2026 23:18
@BartvHelvert BartvHelvert changed the title test(ui-test): wait for popup and snippet input test(ui-test): choose switcher items without key input Nov 6, 2026
@BartvHelvert
BartvHelvert merged commit 989aec7 into master Nov 7, 2026
6 of 8 checks passed
@BartvHelvert
BartvHelvert deleted the test/ui-input-readiness branch November 7, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom editor switcher UI test leaves its selected popup item open Snippet UI test sometimes types without expanding its completion

1 participant