Skip to content

fix: keep sidebar order E2E aligned with header drag - #180167

Merged
shakkernerd merged 1 commit into
mainfrom
sidebar-header-drag-test-contract
Oct 22, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
sidebar-header-drag-test-contract

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the sidebar ordering browser check after #180046 intentionally removed the category Reorder menu. The existing scenario still waited for the retired Reorder Beta control, so it failed before exercising the category order, persistence, and reload assertions that remain part of the supported header-drag workflow.

User Impact

There is no user-visible product change. Contributors get a browser test that follows the current sidebar interaction: dragging a category by its header reorders it, while the test continues to protect plugin keyboard/context-menu/focus behavior, persisted plugin order, zero session-row patches, and reload behavior.

Why This Change Was Made

The stale category segment now uses the same header-label drag pattern as the maintained session-group scenarios. It drags Beta before Alpha, then checks both the rendered category order and the exact Gateway write, including normalized group names and the full section order. The retired menu and its obsolete focus expectation are removed only from this category segment; unrelated plugin keyboard and focus assertions are unchanged.

Evidence

The previous checks-ui-e2e failure stopped at the missing Reorder Beta locator. On the exact committed tree, an isolated macOS browser environment with the frozen repository dependencies passed:

  • changed-file formatting, lint, and UI i18n checks;
  • the affected core-test-ui-e2e type graph; and
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/sidebar-plugin-order.e2e.test.ts — 1 file and 1 complete scenario passed.

The scenario exercised plugin Shift+F10/Enter and focus retention, category header drag, the exact sessions.groups.put payload, zero sessions.patch requests, and plugin/category order after reload. Hosted CI and independent review continue on this published head.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@shakkernerd
shakkernerd merged commit cadafc0 into main Oct 22, 2026
88 of 89 checks passed
@shakkernerd
shakkernerd deleted the sidebar-header-drag-test-contract branch October 22, 2026 02:16
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: the sidebar ordering browser check now exercises category header dragging and persisted order.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
Updates the sidebar ordering E2E to exercise category header dragging and persisted section order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant