Repository navigation
test(ui): scope advanced disclosure summary selectors - #131541
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 1:00 AM ET / 05:00 UTC. ClawSweeper reviewWhat this changesThe PR makes the Control UI E2E test target only the outer Advanced settings disclosure summary, preventing nested settings disclosures from making its clicks ambiguous. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked until stronger real behavior proof is added - 3 items remain Keep open. Current main still contains the ambiguous descendant selectors, while this narrow branch repairs the test failure without changing product behavior; the maintainer-owned PR remains pending exact-head CI completion. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI renders schema-driven settings, including an outer Advanced settings disclosure and nested object disclosures. The mocked-Gateway E2E test verifies that opening and closing the outer disclosure does not write configuration. flowchart LR
A[Mocked configuration schema] --> B[Settings form renderer]
B --> C[Outer Advanced settings disclosure]
C --> D[Nested object disclosure]
D --> E[Playwright E2E locator]
E --> F[Open close and no-write assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the direct-child selector repair and merge after the remaining exact-head checks verify the focused Chromium path. Do we have a high-confidence way to reproduce the issue? Yes: running the existing focused Chromium E2E test on the pre-fix selector reaches two descendant summaries after the outer disclosure expands, whereas the direct-child selector has one target. Is this the best way to solve the issue? Yes: the outer renderer owns a direct summary and nested objects own descendant summaries, so a direct-child selector fixes the strict-locator failure without weakening the test or changing the UI. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7573b91727c8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
… summary Companion to #131541, which fixed the strict-mode violation in config-form-guidance: settings-layout carries the same under-scoped summary locator; scope it to :scope > summary before it can trip the same way once its clicks happen against expanded advanced content.
* feat(ui): sidebar project grouping and truly flat None mode Group by: None now renders one flat session list — no Other/Groups/Coding zone headers — matching what None promises. New Group by: Project buckets sessions by their resolved repo/workspace checkout, folding .claude/worktrees checkouts into their origin repo via the same rule the harness catalogs already use; checkout-less rows keep their smart zones, mirroring Person mode. * test(ui): scope settings-layout advanced-disclosure clicks to its own summary Companion to #131541, which fixed the strict-mode violation in config-form-guidance: settings-layout carries the same under-scoped summary locator; scope it to :scope > summary before it can trip the same way once its clicks happen against expanded advanced content. * fix(ui): canonicalize checkout paths inside the shared worktree fold ClawSweeper P2: sidebar Project mode keyed sections by the raw workContext.path, so /repo/openclaw and /repo/openclaw/ minted two identical headers. Move trailing-separator stripping into foldWorktreeCheckoutPath so the catalog and sidebar callers share one canonicalization; regression case fails pre-fix.
…#131543) * feat(ui): sidebar project grouping and truly flat None mode Group by: None now renders one flat session list — no Other/Groups/Coding zone headers — matching what None promises. New Group by: Project buckets sessions by their resolved repo/workspace checkout, folding .claude/worktrees checkouts into their origin repo via the same rule the harness catalogs already use; checkout-less rows keep their smart zones, mirroring Person mode. * test(ui): scope settings-layout advanced-disclosure clicks to its own summary Companion to openclaw#131541, which fixed the strict-mode violation in config-form-guidance: settings-layout carries the same under-scoped summary locator; scope it to :scope > summary before it can trip the same way once its clicks happen against expanded advanced content. * fix(ui): canonicalize checkout paths inside the shared worktree fold ClawSweeper P2: sidebar Project mode keyed sections by the raw workContext.path, so /repo/openclaw and /repo/openclaw/ minted two identical headers. Move trailing-separator stripping into foldWorktreeCheckoutPath so the catalog and sidebar callers share one canonicalization; regression case fails pre-fix.
Related: #131421. Maintainer CI repair required to validate #119388.
What Problem This Solves
Resolves a problem where the Control UI advanced-settings E2E check fails when it tries to close a disclosure containing nested object settings. This current-main failure also blocks otherwise unrelated PR validation.
Why This Change Was Made
The check must click the summary belonging to the outer disclosure, not every descendant summary. Opening the advanced fields legitimately renders a nested Prefs disclosure, making the old selector ambiguous. All three uses now select the outer disclosure's direct-child summary.
The nested fixture, strict locator resolution, initial-closed/open/closed sequence, and assertions that no configuration writes occur are unchanged. There are no production changes, timeout increases, skipped tests, or first-match shortcuts.
User Impact
No product behavior or appearance change. The existing browser check can validate opening and closing advanced settings without confusing nested controls.
Evidence
git diff --checkandnode_modules/.bin/oxfmt --check ui/src/e2e/config-form-guidance.e2e.test.ts.522ba50d3525e0b53e03b3c76ff8cb9a1c69684f, combining candidate3af26749e690f59ed7e9eeb9f302ece711dce05bwith main2058fd7e91a7abbbfa924107a9e73c5f692adce0. The initial draft run was intentionally skipped; after marking ready, the normal CI run above supplied the passing proof. No test rerun, timeout change or assertion weakening was needed.Production LOC: 0. Tests: +3/-3. AI-assisted maintainer repair.