Repository navigation
test(ui-react): record the held-module receipt for the lazy file panel waits - #4055
Merged
Merged
Conversation
… budget The comment claimed the treeitem wait had expect.poll's 1000 ms budget. expect.element without a timeout gets the test's remaining time in Vitest 4.1, and a tree module held for 5 s by a Playwright route still passed without the awaited import. Keep the import as a stated dependency and correct the reason (#3285). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 4055 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 4055 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
This was referenced Nov 15, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3285
What changed
This PR completes #3285's verification and corrects one wrong test comment. The fix itself, awaiting the real
file-viewer.jsandfile-tree.jsimports beforefile-loading.layout.tsxpolls, reached main through the test-health epic (cfcb104). This PR adds the held-module failing-first receipt that the issue asks for, and records the scope check. The one code change is to a comment inkeyboard-hints.pointer.tsx. It said the lazy treeitem wait hadexpect.poll's 1000 ms budget, which is false. In Vitest 4.1.11,expect.elementwithout a timeout gets the test's remaining time (Trin@vitest/browser/dist/index-D8jtZoIM.js), and the receipt below shows the unchanged wait surviving a 5 s hold. The awaited import stays as a stated dependency.Why this shape
The issue's approach, a temporary Playwright route that holds the lazy module request, was used for both files. It was not committed: the issue asks for a receipt, not a permanent hold, and the precedent route command (
codeHighlightFailure) aborts a module rather than delaying it. Removing the keyboard-hints import was considered and not taken. It costs nothing, and it states which module the next wait depends on.Proof
Temporary harness (reverted before commit): a
holdLazyFileChunks(ms = 1500)command inpackages/ui-kit/tests/visual/form-browser.tsthatpage.routes**/components/files/file-viewer.tsx*and**/components/files/file-tree.tsx*, waitsmsand then continues the request. It is registered in theui-react-layoutandrail-*commands and called just beforecreateRoot(host). All runs were in the pinned image, vianode scripts/visual.mjs, on baseeb3c53ac2.file-loading.layout.tsx, 1500 ms hold,
--project=ui-react-layout --filter=file-loading.layout:1 failed | 3 passed. The first case,light 320, fails atfile-loading.layout.tsx:55, the[aria-label="Loading file"]poll:AssertionError: expected null not to be null, caused byMatcher did not succeed in time.(1092 ms). The later cases find the module warm.4 passed, and the first case takes 2103 ms, so the hold was in effect.Scope check of the other
ui-reactbrowser tests that renderFilePanel,FileVieweror the Files destination:destination-press.pointer.tsxexpect.poll(#3267).keyboard-hints.pointer.tsxexpect.element(treeitem).toBeVisible(), which has no 1000 ms budget. With the import removed and a 5000 ms hold on--project=rail-fine --project=rail-coarse, all 6 tests pass. The 320 case takes 5352 ms, and a timing probe showed theexpect.elementcall alone waiting 5057 ms and succeeding. Only the comment was wrong.remaining-buttons.cases.tsxShow tree,Close file,Close Files) and store state are checked, and they are not lazy.renderer-dispatch.layout.tsx,mermaid-content-renderer.layout.tsxFileViewerstatically, so no lazy chunk is involved.desktop-navigation,phone-navigation,overlay-stacking(pointer),navigation-reach-fixture,maintenance-disclosure,hygiene-review,policy-review(layout)filePanelOpen,currentPathor request URLs, never lazy viewer or tree content.{"version":1,"kind":"brain-check-pr-receipt","head":"7c2104d37d1cdb60a763de802e54b620cfac8dd8","base":"origin/main","mode":"focused","startedAt":"2026-11-15T21:10:17.680Z","finishedAt":"2026-11-15T21:10:49.852Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":18579.853553},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":185.38082000000577},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":125.57884999999806},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":18.19761699999799},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":13245.150734999996}]}Collisions (
bun scripts/collisions.ts --json --pr 4055, head7c2104d37): nopathorunknowncollision. There isclosure-only overlap in theui-reactworkspace with #3054, #3056, #3059, #3069, #3437, #3581, #3806, #4002, #4018, #4024, #4028, #4034, #4035, #4036, #4037, #4038, #4040, #4042, #4046, #4050, #4052 and #4053.Checklist
docs/reflect the change, or nothing documented moved.Anything left open
Nothing.
🤖 Generated with Claude Code