@devries-cameron20 / t3code-1 / commits / 8ee7183e6c
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

test(web): minimap next-turn test no longer flakes after a resize (#33964)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Theo Browne committed Nov 10, 2026 at 08:42 UTC 8ee7183e6c8a1c22a6698f4909ef7e2a423bec3a
1 file changed +3
apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
+3
@@ -498,6 +498,9 @@ describe("MessagesTimeline messages", () => {
498
499 viewport.scrollTop -= 30;
500 await vi.waitFor(() => expect(screen.button("Next turn")).not.toBeDisabled());
501 + // Legend keeps its initial end anchor until a scroll leaves the end, and re-pins on resize.
502 + viewport.scrollTop = 0;
503 + await vi.waitFor(() => expect(strips()[0]?.dataset.inView).toBe("true"));
504
505 // Shrinking a detached viewport moves the bottom away without a scroll event.
506 await screen.rerender(