The Preview scroll test waits for the call it asserts (#1039) #1041

Merged
claude-bot merged 1 commit from fix/1039-preview-scroll-test-waits into main 2026-10-02 22:19:03 +00:00
Collaborator

Closes #1039.

Summary

Preview.jsx brings the panel into view from a passive effect. The test asserted the second scrollIntoView call on the line after findByText resolved, which is at commit and so can be before that effect has run on a busy runner. The test now waits for the call itself. Test only; the component is unchanged.

It turned PR #1038 (no frontend change) red once and PR #1034 (backend only) red once.

Changelog

  • Fragment added: changelog.d/1039-preview-scroll-test-waits.fixed.md (scripts/changelog.py check passes)

Test plan

  • CI on this PR. The vitest file was not run locally in this session; the change is one await waitFor(...) around an existing assertion.

🤖 Generated with Claude Code

Closes #1039. ## Summary `Preview.jsx` brings the panel into view from a passive effect. The test asserted the second `scrollIntoView` call on the line after `findByText` resolved, which is at commit and so can be before that effect has run on a busy runner. The test now waits for the call itself. Test only; the component is unchanged. It turned PR #1038 (no frontend change) red once and PR #1034 (backend only) red once. ## Changelog - [x] Fragment added: `changelog.d/1039-preview-scroll-test-waits.fixed.md` (`scripts/changelog.py check` passes) ## Test plan - [ ] CI on this PR. The vitest file was not run locally in this session; the change is one `await waitFor(...)` around an existing assertion. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The Preview scroll test waits for the call it asserts (#1039)
All checks were successful
CI / Backend lint (ruff) (pull_request) Successful in 32s
CI / Feedback site tests (pull_request) Successful in 43s
CI / Does this change touch the recording path? (pull_request) Successful in 33s
CI / Synthetic session harness (no GPU, no LLM) (pull_request) Has been skipped
CI / Bot/backend version sync (pull_request) Successful in 55s
CI / Bot tests and audit (pull_request) Successful in 2m1s
CI / Summarisation accuracy eval harness (stub provider) (pull_request) Successful in 2m13s
CI / Docker image build (pull_request) Successful in 3m7s
CI / Frontend (shard 2/2) (pull_request) Successful in 7m28s
CI / Frontend (shard 1/2) (pull_request) Successful in 10m20s
CI / End-to-end journeys (keyboard) (pull_request) Successful in 11m16s
CI / End-to-end journeys (desktop) (pull_request) Successful in 11m21s
CI / End-to-end journeys (phone) (pull_request) Successful in 16m19s
CI / Backend migration, tests, and audit (pull_request) Successful in 36m8s
7e7280792e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude-bot deleted branch fix/1039-preview-scroll-test-waits 2026-10-02 22:19:05 +00:00
Sign in to join this conversation.
No description provided.