Repository navigation
test(e2e): update five stale or racy terminal and agent specs - #39982
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
- profile-state restart: runNow now returns the saved pending row (#38217) - codex account switch: click the backdrop clear of the sidebar seam strip (#38288) - claude sidebar agent view: drop the removed subagent indicator check (#34558) - IME preedit continuity: refit after changing the font, like font zoom - agent send picker: bind local fixture panes to a live PTY so reattach keeps them
da1f949 to
9a928d8
Compare
ELI5
Several end-to-end tests have been failing on the daily full run. The app was behaving as intended, but the tests were out of date or racing the app. This updates five of them so they check the current behavior and stop racing.
What Changed
automation.runNowintentionally returns the savedpendingrow instead of waiting for dispatch. The spec now expectspending.safeFit) then refit the pane mid-loop, from 75 to 80 columns. The cell width changed from 587/75 to 626/80, so every later preedit sample shifted by about 1/64px per glyph against the baseline. The spec now refits right after changing the font, asuseTerminalFontZoomdoes.clearTabPtyId, so the target became "Terminal is no longer available" and was not revealed. This depended on timing (3 of 5 runs locally, the first test of a shard in CI). Local variants now spawn a real PTY for that pane. The SSH variants keep the fake id because the unreachable host never reattaches.Why
The full E2E suite on main has been red for days, and PR CI only runs changed specs. No assertion was weakened. Each change follows an intended behavior change or removes a race.
Linked Issue
N/A (maintainer: full-suite E2E triage)
Visual Proof
N/A. These are test-only changes.
Testing
Linux, rootless Xvfb 1280x1024, CI-equivalent fontconfig,
taskset -c 0,1,--repeat-each=5. Before the fix, the IME spec and the picker spec failed locally the same way they fail in CI. The other three fail on every CI run, on assertions tied to the intended changes above.legacy JSON is removed)Risk
Level: Low. These are test-only changes. Revert with a plain revert.