Skip to content

Commit d7c3070

Browse files
Merge remote-tracking branch 'origin/main' into pr-32330
2 parents 5551099 + 8ee7183 commit d7c3070

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/web/src/components/chat/MessagesTimeline.browser.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ describe("MessagesTimeline messages", () => {
498498

499499
viewport.scrollTop -= 30;
500500
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"));
501504

502505
// Shrinking a detached viewport moves the bottom away without a scroll event.
503506
await screen.rerender(

0 commit comments

Comments
 (0)