Repository navigation
test(ui): restore main lint and UI tests - #193097
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR gives two Promise executors block bodies so they no longer implicitly return HTTP server objects. Example: Lint the MCP fullscreen test's sandbox startup and shutdown hooks.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR makes the smallest complete lint repair without changing test behavior; no correctness or security findings were identified, although the aggregate CI gate remains red. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI browser regression starts a local MCP sandbox before testing fullscreen layout and closes it afterward; this change affects only those test lifecycle hooks. flowchart LR
A[Test setup] --> B[Promise executor]
B --> C[Sandbox HTTP server]
C --> D[Resolve callback]
D --> E[Fullscreen browser regression]
E --> F[Test cleanup]
Technical reviewBest possible solution: Retain this focused repair and resolve the existing CI gate through the repository's supported handling of inherited failures. Do we have a high-confidence way to reproduce the issue? The original executors and enabled lint rule establish the failure directly from source; the author reports a red/green lint run, and the relevant head CI check passes. Is this the best way to solve the issue? Yes: block bodies remove the forbidden implicit returns while preserving callback-driven completion, without suppressions, new helpers, or weakened assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c013af3c93e1. Provenance checked
SecurityNone. EvidenceWhat I checked:
PR surfaceTests +4. Total +4 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 4, 2026, 8:15 PM ET / November 5, 2026, 01:15 UTC. |
* test(ui): avoid returning from MCP fullscreen e2e Promise executors * test(ui): match current copy label and French approval text
Problem
Three tests on main are red:
check-lint-core-2: fix: MCP apps stay in a thin strip when expanded #193069 (f05f838) addedui/src/e2e/chat-mcp-app-fullscreen.e2e.test.tswith two arrow-expression Promise executors (sandbox.listen(...)andsandbox.close(...)) that return a value.eslint/no-promise-executor-return, an error in.oxlintrc.json, rejects that.checks-ui:src/components/markdown-tables.test.ts("copies rendered breaks and delimiter characters…") asserts the"Copied!"label from fix(ui): preserve table cell boundaries when copying #192752, but the shipped English label is"Copied", as in the file's other copy assertions.checks-ui:src/components/board/board-widget-locale.test.tsxexpects the English fallback "private and future results" after switching to French. chore(ui): refresh control ui locales #193075 refreshed the locales and added the French text ("…les résultats privés sélectionnés et les résultats futurs…").Solution
No product changes.
Impact
Clears
check-lint-core-2andchecks-uion main and on PRs that merge it. Test-only.Evidence
oxlint -c .oxlintrc.json --tsconfig config/tsconfig/oxlint.core.jsonon the e2e file reports both errors on base (lines 26 and 29) and is clean with the fix.