Repository navigation
test(e2e): fix failures and improve stability - #23480
AmethystLiang merged 1 commit into
Conversation
- Narrow toolbar width and set window minimums for consistent testing - Add node_modules symlink to fixture for ESM import resolution - Exercise manual paging and fix button selector - Preserve repo filters in reveal workflow - Adjust timing strategy and increase test timeout
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe pull request updates five E2E tests and one runtime fixture. The tests check narrow browser toolbar sizing, native-chat paging and focus, terminal parking-cycle timing, and sidebar filters when revealing a hidden workspace. The fixture creates a platform-specific Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The E2E test and fixture changes are ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the problem, solution, affected tests, and recommended test command. However, it does not follow the repository template because it omits the required ELI5, What Changed, Why, Linked Issue, Visual Proof, review, boundary, notes, and checklist sections. Resolution Add the missing template sections. Include a linked issue or explain the applicable maintainer exception, set Visual Proof to N/A with a reason because this is test-only, document cross-platform and compatibility considerations, and complete the required checklist items.
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Test-only stability pass across six E2E files (no production code changed).
- Address-bar narrow-toolbar spec — retargets the settled toolbar band from
>420pxto260px ±5pxand zeroes the window minimum insidesetWindowWidthso the minimum can't mask the narrow-pane state. The added upper bound is what actually pins the inline field as collapsed. - Daemon-generation runtime fixture — symlinks the repo
node_modulesinto the temp fixture root so external requires in the esbuild bundle resolve from the bundle's own directory. Verified the later recursivermSyncunlinks the Windows junction rather than traversing into the realnode_modules. - Native-chat history-prepend spec — stubs
window.IntersectionObservertoundefinedbefore the chat view mounts, forcing the manual paging fallback (canObserve = false), which is exactly the path the test then drives. - Native-chat message-rail spec — replaces the loose
.first()-button focus assertion withbutton[data-current="true"], matching the production focus target. - Terminal hidden-view parking spec — swaps the inter-cycle wait from the 4s burst window to
ceil(FLIP_WINDOW/5)(12s) to stay below the 12-flip/60s sustained-churn pin, and raises the timeout to 420s. - Worktree reveal spec — renames to "adjusts filters" and asserts the reveal preserves the selected repo while appending the target repo, matching
revealWorkspaceFilters' append semantics and the production dialog label.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Problem
E2E tests were failing or flaking due to environment-specific issues, incorrect element selectors, inadequate timeouts, and assumptions about filter behavior.
Solution
Fixed test reliability across 6 test files:
.first()to[data-current="true"]to target correct focused elementTesting
Test-only changes; run:
pnpm test tests/e2e/