Skip to content

test(ui): open the Settings drawer by keyboard before the Escape check - #204539

Merged
obviyus merged 1 commit into
mainfrom
fix/settings-agent-selector-escape
Nov 24, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/settings-agent-selector-escape

Conversation

@obviyus

@obviyus obviyus commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

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.

@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 24, 2026
@obviyus
obviyus merged commit ca33faf into main Nov 24, 2026
78 checks passed
@obviyus
obviyus deleted the fix/settings-agent-selector-escape branch November 24, 2026 09:35
@obviyus

obviyus commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as ca33faf.

  • Problem: the 390 px Escape check failed sometimes on scheduled CI. A mouse click left the pointer over the drawer's "Back to app" button, its hover tooltip opened on slow runners, and the tooltip correctly took the first Escape.
  • Fix: open the drawer with the keyboard, so the flow is keyboard-only.
  • Proof: a forced 1.5 s wait reproduced the CI failure on the old test and passes with this change; the file passes 4 of 4.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant