Skip to content

Wait for the rebuilt keyboard before using the extra-keys panel in editor tests - #48

Merged
RioPlay merged 1 commit into
mainfrom
fix/extra-keys-restart-race
Sep 17, 2026
Merged

RioPlay merged 1 commit into
mainfrom
fix/extra-keys-restart-race

Conversation

@RioPlay

@RioPlay RioPlay commented Sep 17, 2026

Copy link
Copy Markdown
Owner

The async-IMI-restart race that PR #45 fixed for the backspace drag and its panel toggle has a third surface: KeyboardEditorContractTest presses the new "Extra keys" chevron immediately after setText, and on a slow CI emulator the toggle can land on the pre-rebuild keyboard — the rebuild then discards the open panel and the test fails with "Missing Forward delete" (observed once on main, run 35190589034, after PR #47).

KeyboardEditorContractTest gains an openExtraKeys() helper: press the chevron, wait up to 3 s for the panel's accessory keys to actually appear, and retry (bounded, 15 s overall) if a rebuild swallowed the toggle. The two tests that drive the panel now use it. Test-only change; production code untouched.

Verified locally on UtterleafFoundation35 (API 35): KeyboardEditorContractTest passes 3/3.

Implemented by opencode (openrouter/z-ai/glm-5.3-flash) in T3 Code.

@RioPlay
RioPlay merged commit 3c3232f into main Sep 17, 2026
1 check passed
@RioPlay
RioPlay deleted the fix/extra-keys-restart-race branch September 18, 2026 01:06
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.

1 participant