Skip to content

test(ui): restore main lint and UI tests - #193097

Merged
RomneyDa merged 3 commits into
mainfrom
fix/mcp-fullscreen-e2e-lint
Nov 5, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/mcp-fullscreen-e2e-lint

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Problem

Three tests on main are red:

  • check-lint-core-2: fix: MCP apps stay in a thin strip when expanded #193069 (f05f838) added ui/src/e2e/chat-mcp-app-fullscreen.e2e.test.ts with two arrow-expression Promise executors (sandbox.listen(...) and sandbox.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.tsx expects 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

  • Give both executors block bodies.
  • Assert the current English label and the translated French text.

No product changes.

Impact

Clears check-lint-core-2 and checks-ui on main and on PRs that merge it. Test-only.

Evidence

  • oxlint -c .oxlintrc.json --tsconfig config/tsconfig/oxlint.core.json on the e2e file reports both errors on base (lines 26 and 29) and is clean with the fix.
  • Both UI test files fail on main-based head 1d30f53 (the same assertions as CI job 126977789721 and job 126977789478). With the fix, after merging current main, 14/14 pass.

@clawsweeper

clawsweeper Bot commented Nov 5, 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Both expression-bodied executors violate eslint/no-promise-executor-return.
  • After: Both executors invoke the same server methods and callbacks without returning their results.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Minimal, source-verifiable repair with passing relevant lint validation; broad CI is still failed.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored, test-only syntax repair changes no shipped behavior; the relevant lint check passes, and the earlier layout screenshots are not treated as proof of this change.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Repository contributors encounter a lint failure in the fullscreen regression fixture.
Reason: This maintainer-authored repair restores the existing lint contract without changing product direction or behavior.

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
Reviewed head: 1d30f53058d2a7899cc289a315bf2838a2bdaabe

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • MCP fullscreen E2E server lifecycle keeps the original intent (f05f838: Start and stop the sandbox used by the nested-frame fullscreen layout regression.)

Security

None.

Evidence

What I checked:

PR surface

Tests +4. Total +4 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 6 2 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 6 2 +4

Labels

Label changes:

  • add P2: A concrete lint violation blocks a repository check, with no runtime user behavior changed.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A concrete lint violation blocks a repository check, with no runtime user behavior changed.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 4, 2026, 8:15 PM ET / November 5, 2026, 01:15 UTC.

@RomneyDa RomneyDa changed the title test(ui): avoid returning from MCP fullscreen e2e Promise executors test(ui): restore main lint and UI tests Nov 5, 2026
@vincentkoc vincentkoc self-assigned this Nov 5, 2026
@RomneyDa
RomneyDa merged commit 8168f83 into main Nov 5, 2026
81 of 82 checks passed
@RomneyDa
RomneyDa deleted the fix/mcp-fullscreen-e2e-lint branch November 5, 2026 01:39
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
* test(ui): avoid returning from MCP fullscreen e2e Promise executors

* test(ui): match current copy label and French approval text
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants