Repository navigation
test(ui): open the Settings drawer by keyboard before the Escape check - #204539
Merged
Merged
Conversation
Co-authored-by: obviyus <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Collaborator
Author
|
Landed as ca33faf.
|
vincentkoc
added a commit
that referenced
this pull request
Nov 24, 2026
* commit '391dea93e0a97fff97f9f3d5e94eac992b247b09': (21 commits) test(update): cover maintenance release before conversion (#204548) fix(ci): control memory pressure in cron rearm fixture (#204543) fix: align release workflow tests with retained evidence test(ui): open the Settings drawer by keyboard before the Escape check (#204539) fix(ci): avoid redundant globs for literal test inventories (#204529) fix(pr): retain protected resources after native squash merges (#204496) fix(ui): show the check mark on the custom ask_user answer (#199999) chore(ui): refresh control ui locales (#204542) fix(update): build Git releases only once (#204512) fix(ci): avoid repeated full-inventory matching (#204525) test(ci): align exec completion fixtures with process instances (#204507) test(update): replace mocked JSON routing with child proof (#204527) fix(slack): reject system events with an unresolved conversation type (#204444) test(agents): distinguish the source-session root (#204524) perf(ai): keep Responses tool history checkpointed across turns (#204519) feat(zai): add GLM-5.4 as the Coding Plan default (#204522) ci: cover unscheduled test files daily and fail when a test has no scheduled lane (#204472) fix(ci): model a distinct FRV job retry in CLI fixtures (#204517) improve(ui): defer sign-in controls until needed (#204484) test(agents): assert the prepared MCP hook prompt (#204508) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 25, 2026
openclaw#204539) ## What Problem This Solves `ui/src/e2e/settings-agent-selector.e2e.test.ts > closes only the agent menu on Escape at 390px` fails sometimes on scheduled `main` CI (run 45356603923, and before on 2026-11-23). The failure screenshot shows the Settings drawer and the agent sheet both still open after Escape. Cause: the test opens the drawer with a mouse click on `.topbar-nav-toggle`. The pointer then stays over the drawer's "Back to app" button, which has a hover tooltip (150 ms delay). On a slow runner the tooltip opens before the test presses Escape. An open tooltip takes the first Escape (`TooltipOwner.consumeEscape`, window capture), so the menu stays open. This is correct product behavior: hover content must close on Escape without moving the pointer (WCAG 1.4.13). The test meant to drive a keyboard flow but left a mouse hover behind. ## Change - Open the drawer with the keyboard (`press("Enter")`) instead of a click. The pointer then hovers nothing, and the flow is keyboard-only from start to end. - No product change. ## Evidence - Forced reproduction: with a 1.5 s wait added before Escape, the old test failed locally with the same CI assertion (`expected 'true' to be 'false'`), and `openclaw-tooltip[open]` was the "Back to app" tooltip. With this change and the same wait: pass, no open tooltip. - Without the wait: the old test passed 8 of 8 local runs (the race needs a slow runner). - `ui/src/e2e/settings-agent-selector.e2e.test.ts`: 4 of 4 pass. oxfmt and oxlint clean. Co-authored-by: Ayaan Zaidi <[email protected]>
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 Problem This Solves
ui/src/e2e/settings-agent-selector.e2e.test.ts > closes only the agent menu on Escape at 390pxfails sometimes on scheduledmainCI (run 45356603923, and before on 2026-11-23). The failure screenshot shows the Settings drawer and the agent sheet both still open after Escape.Cause: the test opens the drawer with a mouse click on
.topbar-nav-toggle. The pointer then stays over the drawer's "Back to app" button, which has a hover tooltip (150 ms delay). On a slow runner the tooltip opens before the test presses Escape. An open tooltip takes the first Escape (TooltipOwner.consumeEscape, window capture), so the menu stays open. This is correct product behavior: hover content must close on Escape without moving the pointer (WCAG 1.4.13). The test meant to drive a keyboard flow but left a mouse hover behind.Change
press("Enter")) instead of a click. The pointer then hovers nothing, and the flow is keyboard-only from start to end.Evidence
expected 'true' to be 'false'), andopenclaw-tooltip[open]was the "Back to app" tooltip. With this change and the same wait: pass, no open tooltip.ui/src/e2e/settings-agent-selector.e2e.test.ts: 4 of 4 pass. oxfmt and oxlint clean.