Repository navigation
test(ui): await refresh-card imports before checking navigation layout - #178535
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 waits for dynamic imports to settle before checking the floating refresh card in the navigation layout test. Example: The Chromium test renders collapsed navigation at 1280×800 with refreshRequired=true.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it makes a focused test-readiness change while preserving every layout assertion, and I found no actionable defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe browser fixture mounts FloatingUpdateCard, whose lazy import supplies the refresh-card renderer, and then measures its DOM against the shell controls. flowchart LR
A[Browser fixture] --> B[FloatingUpdateCard]
B --> C[Lazy module import]
C --> D[Refresh card DOM]
D --> E[Layout assertions]
Technical reviewBest possible solution: Keep the existing lazy renderer and use the import-settling wait without weakening the layout contract. Do we have a high-confidence way to reproduce the issue? No high-confidence failing reproduction is established: the PR reports that both the original and changed tests passed locally, although source confirms the lazy import being awaited. Is this the best way to solve the issue? The change is appropriately small: it uses the existing test runner's import-settling operation and retains the independent browser geometry assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5d14ea03ef76. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +1. Total +1 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 October 20, 2026, 12:17 PM ET / 16:17 UTC. |
|
Merged via squash auto-merge.
|
What Problem This Solves
The navigation layout test can check the floating refresh card before its lazy module has loaded.
User Impact
No user-visible change. This only corrects readiness in a browser test.
Why This Change Was Made
Wait for dynamic imports to settle before querying the card. The existing 8px spacing, non-overlap, and control assertions remain intact.
Evidence
node scripts/run-vitest.mjs ui/src/app/navigation-surface.browser.test.tsx --maxWorkers=1passed in 1.82s wrapper wall time.