Repository navigation
test(ui): split the oversized Control UI e2e suites - #114889
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 12:50 AM ET / 04:50 UTC. ClawSweeper reviewWhat this changesSplits three oversized Control UI Playwright E2E suites into behavior-focused sibling files with shared support modules, removes their max-lines exemptions, and updates the related QA smoke reference. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open. The split is a focused test-maintenance refactor with no concrete patch defect found, but it still lacks inspectable after-fix real behavior proof and carries the protected Priority: P3 Review scores
Verification
How this fits togetherControl UI E2E tests start a local browser/server harness and exercise UI flows against a mocked Gateway. These suites provide regression coverage for chat, new-session, and session-management behavior, while the max-lines baseline prevents oversized test files from accumulating further debt. flowchart LR
A[Control UI source] --> B[Local E2E server]
B --> C[Playwright browser suites]
D[Mocked Gateway responses] --> C
C --> E[Behavior-focused test files]
E --> F[QA smoke scenario]
E --> G[Max-lines quality gate]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +652, Tests -373, Other -3. Total +276 across 26 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused split, add a redacted terminal transcript or equivalent artifact showing the renamed Control UI E2E suites run successfully in the browser harness, then let a maintainer review the exact head once the pending checks finish. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reorganizes existing test coverage rather than reporting a current product failure. The relevant behavior to verify is that the browser harness executes the split suites after the refactor. Is this the best way to solve the issue? Yes. Splitting by asserted behavior, sharing only lifecycle and fixtures, and deleting the max-lines exemptions is a maintainable way to reduce the existing test-file debt; no competing implementation path is evident from the supplied predecessor work. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 01f6ad67d52a. LabelsLabel 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
HistoryReview history (3 earlier review cycles) |
52d38ce to
1579d47
Compare
|
Merged via squash.
|
* test(ui): split oversized Control UI e2e suites * test(ui): bound new-session locator polling * test(ui): fix split e2e metadata * test(ui): give startup waits an explicit budget
What Problem This Solves
Three Control UI e2e files had grown past the point where anyone can navigate them:
chat-flow.e2e.test.ts(4537 lines),new-session-page.e2e.test.ts(4475) andsession-management.e2e.test.ts(1926). All three were grandfathered intoconfig/max-lines-baseline.txt, whose header says the list may only shrink — so every addition to those suites either bounced off themax-linesgate or pushed the debt further out.This is developer-facing: finding the test that covers a behavior, and adding one next to it, was needlessly hard.
Why This Change Was Made
Each file is split into sibling suites named after what they assert, rather than chopped by line count:
chat-flow→messaging,streaming,follow-ups,history-recovery,media-files,models-reasoning,navigation-presentationnew-session-page→places,workspace-memory,workspace-validation,prompt-attachments,catalog-reconnect,cloud-startupsession-management→sidebar,groups,archiveShared fixtures, constants, helpers and the browser/server lifecycle move into colocated
*.test-support.tsmodules — one per original file, pluscontrol-ui-e2e-suite.test-support.tsfor what all three shared — following theterminal-panel.test-support.ts/app-host.test-support.tsprecedent from #114737. No production code changes, and all three entries are removed fromconfig/max-lines-baseline.txt.The branch also carries the bounded locator-poll helper from #114828 forward into the six
new-session-pagesuites (49 call sites), so the de-flake landed there is not lost in the split.User Impact
None at runtime. Contributors get e2e suites they can find their way around, and the
max-linesratchet moves in the direction it is supposed to move.Evidence
Every test survives verbatim — per-file
it(counts before and after the split:chat-flow.e2e.test.tsnew-session-page.e2e.test.tssession-management.e2e.test.tsLargest resulting file is
new-session-page.cloud-startup.e2e.test.tsat 944 physical lines, comfortably inside the 1000-line budget (which excludes blanks and comments).Codex autoreview over the split (chunked, 3 chunks): clean, no accepted/actionable findings.
Rebased onto
mainafter #114828 landed; the modify/delete conflict on the pre-splitnew-session-page.e2e.test.tsresolves to the split, with that PR's poll-helper change already carried into the siblings.