diff --git a/apps/web/src/components/chat/MessagesTimeline.browser.test.tsx b/apps/web/src/components/chat/MessagesTimeline.browser.test.tsx index 665eb5e16f69..00c899ffd1c5 100644 --- a/apps/web/src/components/chat/MessagesTimeline.browser.test.tsx +++ b/apps/web/src/components/chat/MessagesTimeline.browser.test.tsx @@ -1504,15 +1504,17 @@ describe("MessagesTimeline scroll position", () => { it("restores a manual reading position after reopening and switching threads", async () => { const props = baseProps(); - function Chat() { + function Chat({ routeThreadKey = props.routeThreadKey }: { routeThreadKey?: string }) { const [liveFollowEnabled, setLiveFollowEnabled] = useState(true); // The chat view stops following the live edge when the reader scrolls. return (
setLiveFollowEnabled(false)}> setLiveFollowEnabled(false)} />
); @@ -1532,9 +1534,7 @@ describe("MessagesTimeline scroll position", () => { scrollOffset: offset, }); - const timeline = (routeThreadKey: string) => ( - - ); + const timeline = (routeThreadKey: string) => ; await using screen = await renderElement(timeline(props.routeThreadKey)); const reopenedViewport = await waitForList(props); await vi.waitFor(() =>